Java Statements

Statement is the collection of Expressions.

To prepare Java applications, JAVA has provided the following Statements.

  1. General Purpose Statements:

These statements are very much frequent and very much common in java applications.

EX: Declaring classes, interfaces,….
Creating Objects 
Accessing members of the classes, interfaces,…
Declaring variables, methods,…
Accessing variables, methods,….
——-
——-

  1. Conditional Statements:

These Statements are able to execute a block of instructions on the basis of a particular condition.

EX: if, switch

  1. Iterative Statements:

These statements allow us to execute a block of instructions repeatedly on the basis of a particular conditional expression.

EX: for, while, do-while

  1. Transfer Statements:

These statements are able to bypass the flow of execution from one instruction to another instruction.

EX: break, continue, return

  1. Exception Handling Related Statements:

These statements are able to raise and handle exceptions.

EX: throw, try-catch-finally, try-with-resources,…