beta 外部測試版
demo 演示版
Enhance 增強版或者加強版 屬于正式版
Free 自由版
Full version 完全版 屬于正式版
shareware 共享版
Release 發行版 有時間限制
Upgrade 升級版
Retail 零售版
Cardware 屬共享軟件的一種,只要給作者回復一封電郵或明信片即可。(有的作者并由此提供注冊碼等),目前這種形式已不多見。
Plus 屬增強版,不過這種大部分是在程序界面及多媒體功能上增強。
Preview 預覽版
Corporation & Enterprise 企業版
Standard 標準版
Mini 迷你版也叫精簡版只有最基本的功能
Premium -- 貴價版
Professional -- 專業版
Express -- 特別版
Deluxe -- 豪華版
Regged -- 已注冊版
CN -- 簡體中文版
CHT -- 繁體中文版
EN -- 英文版
Multilanguage -- 多語言版
?
?
修飾class的詞有public,abstract和final,其中abstract和final不能同時修飾class。內部類還可以用private或protected來修飾class。
可以在類中設置兩種類型的元素:字段和方法,統稱為類的成員。
類、源文件以及編譯后文件:一個java源代碼文件(通常被稱為編譯單元)內可以有一個且只能有一個public類,該類的名稱必須與文件的名稱相同(包括大小寫,但不包括文件的后綴名:.java)。當編譯一個.java文件時,在.java文件中的每個類都會有一個跟類名相同的.class輸出文件。
雖然不是很常用,但編譯單元內完全沒有public類也是可能的,在這種情況下可以隨意為文件命名。
package:為了唯一標識每個類并分組,java使用了package的概念。同時,將邏輯上相關的類放在同一個包中,可以使程序結構更為清楚。你要做的就是在java文件開頭加一行
注意package 語句必須是文件中的第一行非注釋的程序代碼。
按照慣例,package名稱的第一部分為類創建者的Internet域名的倒序,這樣有利于包名的唯一性。
無論何時創建包,在指定包的名稱的同時隱含的指定了目錄結構。
注意包沒有嵌套或包含關系,a包和a.b包對java命令來說是并列的兩個包。
import: 用import關鍵字導入程序庫,使之成為可用的單元。
java.lang包中的類是默認導入的。
在一個類中使用其他包的類時可以用全稱來指定,如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
?