Javac
This page point to the technical & Programming language, describing its syntax, keywords,& fundamental programming principles
30/08/2022
Java Switch Statement is fall-through:
The Java switch statement is fall-through if a break statement is not present that's means it executes all statements after the first match. Example:
16/08/2022
Decision Making : If-else statement
As you see, in ‘if statement’ that condition true then program will run and condition false program will not execute. But, if condition false and even then program run, then 'if-else statement’ comes to the picture.
Syntax: if(condition){statement 1; //executes when condition is true}
else{statement 2; //executes when condition is false}
Ex:
?????
Click here to claim your Sponsored Listing.
Category
Contact the school
Website
Address
Lucknow