Key words for Java development

Source: Internet
Author: User

Abstractions//abstract methods, modifiers for abstract classes
Assert//Assert condition is satisfied
Boolean//Boolean data type
Break//Jump out of loop or label code snippet
BYTE//8-bit signed data type
One condition for case//switch statement
Catch//And try with catch exception information
Char//16-bit Unicode character data type
class//Definition classes
Const/Not used
Continue//Do not perform the remainder of the loop body
Default branch in//switch statement
Do//Loop statement, the loop body executes at least once
Double//64-bit dual precision floating point number
Else//if the branch that is executed when the condition is not established
Enum//enum type
Extends//indicates that a class is a subclass of another class
Final//indicates that a value cannot be changed after initialization
Indicates that a method cannot be overridden, or that a class cannot have subclasses
Finally//try statement block to execute regardless of whether an exception occurred
Float//32-bit single-precision floating-point number
For//for loop statements
Goto//Not used
If//Conditional statements
Implements//indicates that a class implements an interface
Import//Importing Class
instanceof//test whether an object is an instance of a class
int//32-bit integer number
interface//interface, an abstract type, only the definition of methods and constants
Long//64-bit integer number
Native//representation method implemented in non-Java code
New//Allocation of class instances
Package//series of related classes make up a bundle
Private//Represents a proprietary field, or method, etc., accessible only from within the class
protected//Indicates that a field can only be accessed through a class or its subclasses
Subclasses or other classes within the same package
Public//Represents a common attribute or method
Return//Method returned value
Short//16 digits
Static//represents at the class level definition, shared by all instances
STRICTFP//floating-point comparisons use strict rules
Super//denotes base class
Switch//SELECT statement
Synchronized//Represents a block of code that can only be accessed by one thread at a time
This//indicates invoking the current instance
or call another constructor
Throw//Throw exception
Throws//define the exceptions that the method may throw
Transient//retouching fields that do not serialize
Try//indicates code block to do exception handling or if the and finally mates represent whether throwing an exception executes the code in finally
void//Tag method does not return any value
volatile//Tag fields may be accessed simultaneously by multiple threads without synchronizing
While//while loop

Key words for Java development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.