Ad

Java Statement

Java statement consists of Expression statement, Labeled statement, Control statement, Synchronization statement, Guarding statement.

statements in java

Converting Number to String

Expression Statement: There are 7 types of expression statement: Assignment, Pre-Increment, Pre-Decrement, Post-Increment, Post-Decrement, Method call and Allocation Expression.

Labeled Statement: Labels are used to jump the statement. Java does not support goto label. So, we can use continue label. If require a loop label. Continue label use within a loop only.

Control Statement: use to control the execution of a program. Types of control statement will be discuss in later section. (goto control statement)

Synchronization statement: They are used for handling with multi-threading. (goto multi-threading)

Guarding Statement: They are used for handling with exceptions. These statements use with try, catch & finally.(goto Exceptional Handling)