java reserved words and keywords
java keywords 51
Keywords are lowercase, friendly, sizeof keyword is not java
No. |
Keyword |
meaning |
1 |
abstract |
Modification classes, methods, become an abstract class, abstract method |
2 |
assert |
Used to query internal program error |
3 |
boolean |
One of the basic data types, Boolean typed |
4 |
break |
Out of a switch or the end of a loop |
5 |
byte |
One of the basic data types, 8-bit integer |
6 |
case |
A branch of the switch statement |
7 |
catch |
Capture try block exception clause |
8 |
char |
One of the basic data types, character type |
9 |
class |
The definition of a class |
10 |
const |
Unused |
11 |
continue |
Skip the loop portion of the back of the continue statement, the next one into the loop |
12 |
default |
switch the default clause |
13 |
do |
do / while loop foremost statement |
14 |
double |
One of the basic data type, double precision floating point |
15 |
else |
else if statement clause |
16 |
enum |
Enum type |
17 |
extends |
Show a typed is another type other sub-typed |
18 |
final |
A constant, or not covered in a class or illegal |
19 |
finally |
Will always try block portion performed |
20 |
float |
One of the basic data types, single-precision floating-point number |
21 |
for |
A kind 迴圈 typing |
22 |
goto |
Unused |
23 |
if |
A conditional statement |
24 |
implements |
Define a class that implements interface |
25 |
import |
Importing a package |
26 |
instanceof |
Determining whether an object instance of a class |
27 |
int |
One of the basic data types, 32-bit integer |
28 |
interface |
Abstract types, which may be implemented by a method comprising the class |
29 |
long |
One of the basic data types, 64-bit long integer |
30 |
native |
Is used to declare a method is implemented by the language associated with the computer (e.g., C / C ++ / FORTRAN language) |
31 |
new |
To create a new instance of the object |
32 |
null |
A null reference |
33 |
package |
Package comprising a class |
34 |
private |
An access control, private mode, can only be accessed by methods of the class |
35 |
protected |
An access control mode, protected mode, accessible only by methods of the class, subclass and with bags of |
36 |
public |
An access control, total mode, all class methods can access |
37 |
return |
Return from a method |
38 |
short |
基本資料型別之一,16位短整型 |
39 |
static |
表明具有靜態屬性,屬於類,不屬於類的物件 |
40 |
strictfp |
對浮點數計算使用嚴格的規則 |
41 |
super |
超類物件或建構函式 |
42 |
switch |
一個選擇語句 |
43 |
synchronized |
對執行緒而言是原子的方法或程式碼塊 |
44 |
this |
當前類的一個方法或建構函式的隱含引數 |
45 |
throw |
丟擲一個異常 |
46 |
throws |
一個方法可能丟擲的異常 |
47 |
transient |
標誌非永久的資料 |
48 |
try |
捕獲異常的程式碼塊 |
49 |
void |
修飾方法,表示無返回值 |
50 |
volatile |
確保一個欄位可以由多個執行緒訪問 |
51 |
while |
一種迴圈 |
java的保留字(2個)
编号 | 保留字 |
|
1 | goto | 無任何作用,因為用goto作為關鍵字會影響代碼的可讀性 |
2 | const | 未知 |
3 | byValue | 未知 |
4 | cast | 未知 |
5 | var | 未知 |
6 | future | 未知 |
7 | generic | 未知 |
8 | inner | 未知 |
9 | operator | 未知 |
10 | outer | 未知 |
11 | rest | 未知 |
12 | false | 未知 |
13 | true | 未知 |
14 | null | 未知 |
java的標誌符(3個)
编号 | 標誌符 | |
1 | null | 表示空值,short、int、long、char、float、double、boolean變量。 |
2 | true | 表示 boolean 值倆個的其中一個。 |
3 | false | 表示boolean 值倆個其中的一個。 |