0% found this document useful (0 votes)
9 views1 page

Java Keywords and Their Functions

The document provides a list of Java keywords along with their functions, such as 'abstract' for indicating class details, 'assert' for testing conditions, and 'boolean' for true/false values. It also mentions keywords like 'break' for exiting loops and 'catch' for handling exceptions. Additionally, it notes that 'const' is not usable in Java as it has no meaning.

Uploaded by

althea carias
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Java Keywords and Their Functions

The document provides a list of Java keywords along with their functions, such as 'abstract' for indicating class details, 'assert' for testing conditions, and 'boolean' for true/false values. It also mentions keywords like 'break' for exiting loops and 'catch' for handling exceptions. Additionally, it notes that 'const' is not usable in Java as it has no meaning.

Uploaded by

althea carias
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

KEYWORD WHAT IT DOES

abstract Indicates that the details of a class, a method, or an interface


are given elsewhere in the code.
assert Test the truth of a condition that the programmer believes is
true.
boolean Indicates that a value is either true or false.
break Jumps out of a loop or switchm
byte Indicates that a value is an 8-bit whole number.
case Introduces one of several possible paths of execution in a switch
statement.
catch Introduces statements that are executed when something
interrupts the flow of execution in a try clause.
char Indicates that a value is a character (a single letter, digit,
punctuation symbol, and so on) stored in 16 bits of memory.
class Introduces a class – a blueprint for an object.
const One cannot use this word in a Java program. The word has no
meaning. Because it is a keyword, one cannot create a const
variable.
continue Forces the abrupt end of the current loop iteration and begins
iteration.
default Introduces a path of execution to take when no case is match in
a switch statement.
do Causes the computer to repeat some statements over and over
again (for example, as long as the computer keeps getting
unacceptable results).
double
else
enum
extends
final
finally
float
for
goto
if
implement
s
import

You might also like