Posted in: GK

Java Quiz_1

Welcome to your JAVA Quiz

1. 
Which exception is thrown when a division by zero is attempted in Java?

2. 
Which of the following is not a primitive data type in Java?

3. 
Which keyword is used to inherit a class in Java?

4. 
Which method must be implemented by all threads in Java?

5. 
What is the size of an int variable in Java?

6. 
Which of the following is not a valid Java identifier?

7. 
What is the default value of a boolean variable in Java?

8. 
What is the purpose of the 'final' keyword in Java?

9. 
Which of the following is a valid declaration of an array in Java?

10. 
Which keyword is used to define a class in Java?

See also  Human Culture

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to Top