Keyword collection in java programming

abstract //Abstract method, modifier of abstract class
assert //Assert whether the condition is met
boolean //Boolean data type
break //Jump out of the loop or label code segment
byte //8-bit signed data type
case //One of the switch statements Conditional
catch //Use with try to capture exception information
char //16-bit Unicode character data type
class //Definition class
const //Not used
continue //Do not execute the rest of the loop body
default //The default branch in the switch statement
do / /Loop statement, the loop body will be executed at least once
double //64-bit double precision floating point number
else //The branch to be executed when the if condition is not true
enum //The enumeration type
extends //Indicates that one class is a subclass of another class
final //Indicates that a value cannot be changed after initialization //Indicates that the method cannot be overridden, or a class cannot have subclasses
finally //try statement is a statement block that must be executed regardless of whether an exception occurs
float //32-bit Single precision floating point number
for //for loop statement
goto //not used
if //conditional statement
implements //indicates that a class implements the interface
import //import class
instanceof //Test whether an object is an instance of a certain class
int //32-bit integer
interface //Interface, an abstract type with only definitions of methods and constants
long //64-bit integer
native // Indicates that the method is implemented in non-java code
new //Allocate a new class instance
package //A series of related classes form a package
private //Indicates private fields, or methods, etc., which can only be accessed from within the class
protected //Indicates that the field can only be accessed through Class or its subclass access // Subclass or other classes in the same package
public // Indicates shared attributes or methods
return // Method return value
short // 16-digit number
static // Indicates defined at the class level, all instances Shared
strictfp // Floating point comparison uses strict rules
super // Represents the base class
switch // Select statement
synchronized // Represents a code block that can only be accessed by one thread at the same time
this // Represents calling the current instance // or calling another A constructor
throw //Throws an exception
throws //Define exceptions that may be thrown by the method
transient //Modify fields that are not to be serialized
try //Indicates that the code block needs to handle exceptions or cooperates with finally to indicate whether an exception is thrown and finally is executed Code in
void // Mark method does not return any value
volatile //The mark field may be accessed by multiple threads at the same time without synchronization
while //while loop

 

Guess you like

Origin blog.csdn.net/linwei_hello/article/details/90036541