Java Test 1 – Very Easy Level

Welcome to your Java Test 1 – Very Easy Level

1. What is the correct way to start a Java program?

2. Which of the following is a valid Java variable declaration?

3. What does the following print?


System.out.println(3 + 4);

4. Which data type is used to store text?

5. Which symbol is used to end a statement in Java?

6. What does System.out.println("Hello"); do?

7. Which keyword is used to create a class in Java?

8. How do you write a single-line comment in Java?

9. What does int x = 5 / 2; produce?

10. Which keyword is used to create a new object in Java?

Did you like it? Don’t keep it to yourself β€” share it like juicy gossip! 😏