beta 外部測(cè)試版
demo 演示版
Enhance 增強(qiáng)版或者加強(qiáng)版 屬于正式版
Free 自由版
Full version 完全版 屬于正式版
shareware 共享版
Release 發(fā)行版 有時(shí)間限制
Upgrade 升級(jí)版
Retail 零售版
Cardware 屬共享軟件的一種,只要給作者回復(fù)一封電郵或明信片即可。(有的作者并由此提供注冊(cè)碼等),目前這種形式已不多見。
Plus 屬增強(qiáng)版,不過這種大部分是在程序界面及多媒體功能上增強(qiáng)。
Preview 預(yù)覽版
Corporation & Enterprise 企業(yè)版
Standard 標(biāo)準(zhǔn)版
Mini 迷你版也叫精簡版只有最基本的功能
Premium -- 貴價(jià)版
Professional -- 專業(yè)版
Express -- 特別版
Deluxe -- 豪華版
Regged -- 已注冊(cè)版
CN -- 簡體中文版
CHT -- 繁體中文版
EN -- 英文版
Multilanguage -- 多語言版
?
?
修飾class的詞有public,abstract和final,其中abstract和final不能同時(shí)修飾class。內(nèi)部類還可以用private或protected來修飾class。
可以在類中設(shè)置兩種類型的元素:字段和方法,統(tǒng)稱為類的成員。
類、源文件以及編譯后文件:一個(gè)java源代碼文件(通常被稱為編譯單元)內(nèi)可以有一個(gè)且只能有一個(gè)public類,該類的名稱必須與文件的名稱相同(包括大小寫,但不包括文件的后綴名:.java)。當(dāng)編譯一個(gè).java文件時(shí),在.java文件中的每個(gè)類都會(huì)有一個(gè)跟類名相同的.class輸出文件。
雖然不是很常用,但編譯單元內(nèi)完全沒有public類也是可能的,在這種情況下可以隨意為文件命名。
package:為了唯一標(biāo)識(shí)每個(gè)類并分組,java使用了package的概念。同時(shí),將邏輯上相關(guān)的類放在同一個(gè)包中,可以使程序結(jié)構(gòu)更為清楚。你要做的就是在java文件開頭加一行
注意package 語句必須是文件中的第一行非注釋的程序代碼。
按照慣例,package名稱的第一部分為類創(chuàng)建者的Internet域名的倒序,這樣有利于包名的唯一性。
無論何時(shí)創(chuàng)建包,在指定包的名稱的同時(shí)隱含的指定了目錄結(jié)構(gòu)。
注意包沒有嵌套或包含關(guān)系,a包和a.b包對(duì)java命令來說是并列的兩個(gè)包。
import: 用import關(guān)鍵字導(dǎo)入程序庫,使之成為可用的單元。
java.lang包中的類是默認(rèn)導(dǎo)入的。
在一個(gè)類中使用其他包的類時(shí)可以用全稱來指定,如java.util.ArrayList(這樣就不用import語句了),也可以僅指定為ArrayList(緣于import)。
3.9 Keywords
The following character sequences, formed from ASCII letters, are reserved for use as keywords and cannot be used as identifiers (§3.8):
Keyword: one of abstract default if private this boolean do implements protected throw break double import public throws byte else instanceof return transient case extends int short try catch final interface static void char finally long strictfp volatile class float native super while const for new switch continue goto package synchronized
The keywords const
and goto
are reserved, even though they are not currently used. This may allow a Java compiler to produce better error messages if these C++ keywords incorrectly appear in programs.
While true
and false
might appear to be keywords, they are technically Boolean literals (§3.10.3). Similarly, while null
might appear to be a keyword, it is technically the null literal (§3.10.7).
3.10 Literals
A literal is the source code representation of a value of a primitive type (§4.2), the String
type (§4.3.3), or the null type (§4.1):
Literal: IntegerLiteral FloatingPointLiteral BooleanLiteral CharacterLiteral StringLiteral NullLiteral
?