A1 Java Keyword Reference

Keyword Description
abstract Used to modify a class or a method.
boolean It is a Java primitive type. A boolean variable may take on one of the values true or false.
break Used to prematurely exit a loop or to mark the end of a case block in a switch statement.
byte It is a Java primitive type. A byte can store an integer value in the range [128, 127].
case Used to label each branch in a switch statement.
catch Used to define exception handling blocks in try? catch? finally statements.
char It is a Java primitive type. It can store unsigned single unicode character.
class Used to declare a new Java class, which is a collection of related variables and/or methods.
continue Used to the next iteration ...

Get Java Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.