Another variation of the traditional FOR loop is an Enhanced FOR loop. It is also called a FOR-EACH loop.
Welcome to ExamTray
|Online Tests||Questions and Answers|
|General Knowledge||General Knowledge Questions and Answers|
|General English Grammar||General English Questions and Answers|
|Programming Languages||Programming Languages|
Recently Added Question Papers
Java language provides another good looping control statement called FOR loop.
Java language provides a Do While loop with slightly modified features of the WHILE loop.
As part of Loop control statements, Java provides three loops namely WHILE loop, FOR loop and DO WHILE loop. Loops repeatedly execute a set of statements as long as the Loop condition is satisfied. A while loop executes the statements under it only if the condition is satisfied.
Java language provides an alternative to the IF ELSE-IF ladder in the form of SWITCH CASE.
Java Switch case uses the following predefined keywords.
A Control statement in Java decides the code to be executed based on a condition. All control statements take the boolean value as an INPUT and branches control accordingly.
Java language has a special operator called Ternary Operator that works like a Shortcut IF ELSE control statement.
Java language has operators of all kinds namely Arithmetic Operators, Relational Operators, Logical Operators and Bitwise Operators. Different Java operators have got different precedence and associativity.
Java language allows developers to work with individual bits of a number using Logical Bitwise Operators. Bitwise logical operators and Logical Bitwise Operators are one and the same.
As the name suggests, Java Boolean Logical Operators work with boolean data type values.