Level 1: Basics (Easy)

1. What kind of programming language is Java primarily known as?
2. What does System.out.println() do in Java?
3. Which data type is used to store text (like "Rajan") in Java?

Level 2: Core Concepts (Medium)

4. What is the primary purpose of a loop (like a for loop)?
5. What is a Method in Java?
6. How do you find the size of an array named arr in Java?

Level 3: OOP Concepts (Very Important)

7. What is Encapsulation in OOP?
8. Which OOP concept allows a new class to take on the properties of an existing class?
9. Method Overloading is a common example of which OOP concept?

Level 4: Advanced Concepts (Important)

10. What is a Constructor in Java?
11. What does the private access modifier do?
12. What is the purpose of a try-catch block?

Level 5: Program Logic

13. What is the output of this code?
for (int i = 0; i < 3; i++) { System.out.println(i); }
14. What is the output of this code?
int x = 10; if (x > 5) { System.out.println("High"); } else { System.out.println("Low"); }
15. What is the output of this code if add(5, 5) is called?
int add(int a, int b) { return a + b; }

0/15

Calculating your Java skills...

Detailed Feedback

Here are the concepts you need to review:

Your progress has been saved locally.