Thursday, January 12, 2017

Statements in JAVA(if-else, switch, for ...)

JAVA Statements

---------------------------------------------------------------------------------------------------------

Statement is a collection of expressions.

To design java application, java has provided the following list of statements:

1. General purpose statements:
----------------------------------------------------------
Declaring variables, methods, classes, interfaces....
creating objects for classes...
accessing variables, methods,...


2. Conditional statements:
---------------------------------------------------
1. If          2. Switch


3. Iterative Statements:
----------------------------------------------
1. for 2. while 3. do-while


4. Transfer statements:
--------------------------------------------
1. break     2. continue 3. return


5. Exception Handling Statements:
----------------------------------------------------------------
1. throw          2. try-catch-finally


6. Synchronized Statements:
--------------------------------------------------------
Synchronized Methods
Synchronized Blocks

Note: All Statements will be detailed in upcoming post or you can go directly by clicking on Statements.

You May Also Like: --->  Naming Conventions in JAVA
                      

No comments:

Post a Comment