Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What are the keywords of java?
What are the keywords of java?
take turns

abstract

A keyword in Java language, used in class declaration, indicates that a class cannot be instantiated, but can be inherited by other classes. Abstract classes can use abstract methods, which do not need to be implemented, but need to be implemented in subclasses.

break

A Java keyword, used to change the program execution process, immediately starting from the next sentence of the current statement. If there is a label behind it, start execution from the corresponding place of the label.

situation

Keywords of Java language, used to define a set of branch choices. If a value is the same as that given in switch, it will be executed from this branch.

catch

Keyword in Java, used to declare a block that runs when a runtime error or non-runtime exception occurs in a try statement block.

tea

Keywords of Java language, used to define character types.

continue

A Java keyword used to interrupt the current loop process and restart execution from the end of the current loop. If there is a label behind it, it starts from the corresponding position of the label.

do

A keyword in the Java language used to declare a loop. The end condition of this loop can be set by the while keyword.

double;twofold

A keyword of Java language, used to define variables of type double.

other

A keyword of Java language, if the condition of if statement is not met, the statement will be executed.

final

Keywords in Java language. An entity can only be defined once and cannot be changed or inherited later. More strictly speaking, the final modified class cannot be subclassed, the final modified method cannot be rewritten, and the final modified variable cannot change its initial value.

finally

In Java, a keyword used to execute a piece of code, regardless of whether there are exceptions or runtime errors in the previously defined try statement.

flotage

A keyword in the Java language used to define floating-point variables.

for

Java language keywords used to declare loops. Programmers can specify statements to loop, deduce conditions and initialize variables.

if

Keywords of Java programming language, used to generate conditional tests. If the condition is true, the statement under if will be executed.

tool

Keyword of Java(TM) programming language, which is optional in class declaration and is used to indicate the interface implemented by the current class.

Imported?

A keyword of Java(TM) programming language, which indicates a class or the whole package to be referenced later at the beginning of the source file, so that it is unnecessary to add the name of the package when using it.

Example of

Java(TM) keyword with two operands to test whether the runtime type of the first parameter is compatible with the second parameter.

Internationalorganizations (same as international organizations)

A keyword of Java(TM) used to define an integer variable.

A keyword of Java(TM) used to define a series of methods and constants. It can be implemented by the class through the implements keyword.

long

A keyword in the Java language used to define a variable of type long.

private

Keywords in Java language, used in the sound of methods or variables. This means that this method or variable can only be accessed by other elements of this class.

protect

A keyword in Java language, used in the declaration of methods and variables, indicating that this method or variable can only be accessed by elements in the same class, subclass or class in the same package.

public

A keyword in Java language, used in the declaration of methods and variables, indicating that this method or variable can be accessed by elements in other classes.

return

A keyword in Java language used to end the execution of a method. It can be followed by the required value in a method declaration.

short

Keywords of Java language, used to define variables of type short.

static electricity

Keywords of Java language, used to define variables as class variables. A class only maintains a copy of a class variable, no matter how many instances of the class currently exist. Static can also be used to define a method as a class method. Class methods are called by class names rather than concrete instances, and can only manipulate class variables.

this

A keyword in the Java language that represents an instance of the class in which it belongs. This can be used to access class variables and class methods.

throw

Keywords in Java language, allowing users to throw exception objects or any object that implements throwable.

throw

Keywords in Java language are used in the declaration of methods to explain which exceptions are not handled by this method, but submitted to higher layers of the program.

transient

A keyword in the Java language that indicates that the domain is not part of the object serialization. When an object is serialized, the values of transient variables are not included in the serialized representation, but non-transient variables are included.

attempt

A keyword in the Java language that defines a block that may throw an exception statement. If an exception is thrown, the optional catch statement block will handle the exception thrown in the try statement block. At the same time, whether an exception is thrown or not, the finally statement block will be executed.

empty

A keyword in Java language, used in the method declaration of Java language, indicating that the method has no return value. "void" can also be used to represent statements that have no effect.

unstable

A keyword in Java language, used in the declaration of variables, indicating that variables are modified asynchronously by several threads running at the same time.

During ...

A keyword in the Java language, used to define repeated loop statements. The exit condition of the loop is part of the while statement.

About interruption and continuation

The continue statement is related to the break statement, but it is rarely used. The continue statement is used to make its for, while or do-while statement start the next loop. In the while and do-while statements, the execution of the continue statement means the immediate execution of the test part; In the for loop statement, the execution of the continue statement means that control is passed to the incremental part.