Total Questions : 20
Expected Time : 20 Minutes

1. What is the size of a 'char' in Java?

2. Which of these is an incorrect array declaration in Java?

3. Which one of these lists contains only Java programming language keywords?

4. Which method must be implemented by a class that implements the Runnable interface?

5. In Java, what is the purpose of the transient keyword?

6. How many bytes are used by a 'float' in Java?

7. What does the expression 'float a = 35 / 0' return in Java?

8. Which of these is not a Java feature?

9. How many threads can be executed at a time in a single core processor in Java?

10. What does the hashCode() method in Java return?

11. Which of these is used to handle exceptions in Java?

12. Which of these keywords is used to define a package in Java?

13. What does the 'public' keyword in a class definition specify?

14. In Java, an array is indexed starting from what number?

15. Which of these collection classes in Java implements a dynamic array?

16. In Java, which keyword is used to inherit a class?

17. Which of these access specifiers allows visibility only within the same package?

18. Which interface is used for sorting in Java Collections Framework?

19. Which interface does java.util.Hashtable implement?

20. Which of these data types is not primitive in Java?