Java Keywords and categories

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 match catch exception information
Char//16-bit Unicode character data type
class//Definition classes
Const//Unused In the Java language, const is a reserved keyword, there is no const statement, and there is no place to use the Const keyword.
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
Final private//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//Unused, goto is a reserved keyword in the Java language, there is no goto statement, and there is no place to use the GOTO keyword.
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
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
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

Classification

Access control:
Private privately owned
Protected protected
public.

Class, method, and variable modifiers

Abstract Declaration Abstraction
Class
Extends expansion, inheritance
Final Ultimate, immutable
Implements implementation
Interface interface
Native Local
New, creating
Static statics
STRICTFP rigorous, precise
Synchronized threads, synchronizing
Transient short
Volatile volatile

Program Control statements

Break jumps out of the loop
Continue continue
return returns
Do run
While loop
If if
else instead
For loop
instanceof Instances
Switch switches
Case returns the result in the switch
Default Defaults

Error handling

Catch handling exception
Finally there is no exception to execute
Throw throws an exception object
Throws declares an exception that may be thrown
Try catch exception

Package related
Import Introduction
Package Packages

Basic type

Boolean Boolean type
byte byte type
char character type
Double dual precision,
Float floating point
int integral type
Long integer type
Short Quick-integer
Variable reference

Super Parent class, Super class
This class
void no return value

Java Keywords and categories

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.