Home  >  Article  >  Java  >  Summary about keywords in Java

Summary about keywords in Java

巴扎黑
巴扎黑Original
2016-12-05 10:53:101193browse

Keywords are words that are given specific meanings in Java. These keywords cannot be used to define identifiers

There are a total of 45 keywords in Java, among which we can classify them as follows:

1 .Data type (8) byte short int long float double char boolean

2. Access qualifier (3) public(public) protected(protected) private(private)

3. Commonly used in programs: abstrac (define abstract class) extends (subclass inherits parent class) interface (defines interface) implements (implements interface) package (references a package) new (creates object) super (used to call methods of parent class) this (the object of the calling method) void (return value type) class (define a class) break (jump to the end of the switch statement) continue (end the current loop) return (end the entire function) default switch case do while if else for import static final

Since I have just started, I have not fully mastered the usage of all keywords. These 35 have been learned

4. What I have not learned yet: catch finally instanceof strictfp synchronized throws transient try volatile


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn