One day Java class Java keyword

Source: Internet
Author: User

Keyword meaning

Abstract indicates that a class or member method has an abstraction attribute

Assert is used for program debugging

One of the Boolean basic data types, Boolean type

Break jumps out of a block early

One of the byte base data types, byte type

Case is used in a switch statement to indicate one of the branches

  

Catch is used in exception handling to catch exceptions

Char One of the basic data types, character type

Class

Const reserved keyword, no specific meaning

Continue back to the beginning of a block

Default defaults, for example, in a switch statement, indicating a default branch

Do used in the DO-WHILE loop structure

Double One of the basic data types, two-precision floating-point number types

else used in a conditional statement to indicate a branch when the condition is not true

Enum enum

Extends indicates that one type is a subtype of another type, where the common types have classes and interfaces

Final is used to describe the final attribute, indicating that a class cannot derive a subclass, or that a member method cannot be overridden, or that the value of a member field cannot be changed

Finally , which is used to handle exception cases, to declare a block of statements that are essentially bound to be executed

One of the float base data types, single-precision floating-point number types

For A guide word for a looping structure

Goto reserved keyword, no specific meaning

The Guide Word of the IF condition statement

Implements indicates that a class implements the given interface

Import indicates that you want to access the specified class or package

instanceof used to test whether an object is an instance object of a specified type

One of the int basic data types, integer type

Interface Interface

Long integer type one of the basic data types

Native is used to declare that a method is implemented by a computer-related language (such as the C/c++/fortran language).

New To create an instance object

Package Packages

Private Access control method: Private mode

Protected An Access control method: Protection mode

Public An access control method: Common mode

Return The data from the member method

Short , one of the basic data types

Static property is indicated by

STRICTFP used to declare fp_strict (single-precision or double-precision floating-point number) expressions following the IEEE 754 arithmetic specification

Super indicates the reference to the parent type of the current object or the constructor of the parent type

The Guide word for the Switch branch statement structure

Synchronized indicates that a piece of code needs to be executed synchronously

This refers to a reference to the current instance object

Throw throws an exception

Throws declares all exceptions that need to be thrown in the currently defined member method

Transient declaring a member domain without serialization

Try a block that might throw an exception

void declares that the current member method does not return a value

Volatile indicates that two or more variables must be changed in a synchronized manner

While is used in the loop structure

  


One day Java class Java keyword

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.