Statement is the collection of Expressions.
To prepare Java applications, JAVA has provided the following Statements.
- 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,….
——-
——-
- Conditional Statements:
These Statements are able to execute a block of instructions on the basis of a particular condition.
EX: if, switch
- 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
- Transfer Statements:
These statements are able to bypass the flow of execution from one instruction to another instruction.
EX: break, continue, return
- Exception Handling Related Statements:
These statements are able to raise and handle exceptions.
EX: throw, try-catch-finally, try-with-resources,…