Explain the use of if control structure.
35 Likes
The if control structure is used to execute a statement or block of statements if the condition is true, otherwise it ignores the condition. The general syntax of if statement is as follows:
if (Boolean expression) { //Java statements .. .. }
Answered By
20 Likes
What are the unique features of for loop?
Explain the switch statement with an example.