Question 1: JAVA - Variable Declaration Basics
Which of the following is a valid variable declaration in Java?
Question 2: JAVA - Data Types
Which of the following is a primitive data type in Java?
Question 3: JAVA - Type Casting
What will happen in the following code?
Question 4: JAVA - if-else Statement
What will be the output of the code?
Question 5: JAVA - Switch Statement
What will this code print?
Question 6: JAVA - While Loop
How many times will this loop run?
Question 7: JAVA - For Loop Example
What will be the output?
Question 8: JAVA - Do While Loop
What will be the output?
Question 9: JAVA - Break Statement
What will be the output?
Question 10: JAVA - Continue Statement
What will be printed?