Home > Java > javaTutorial > body text

Summary about keywords in Java

巴扎黑
Release: 2016-12-05 10:53:10
Original
1179 people have browsed it

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


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!