Java Topic
Java Basics Quiz (1 - 20)
Question 1: What is the default value of a boolean variable in Java?
Question 2: Which of these is NOT a valid Java identifier?
Question 3: What is the size of an int in Java?
Question 4: Which method is the entry point of a Java application?
Question 5: What is the output of: System.out.println(10 + 20 + "Hello");
Question 6: Which concept allows a class to inherit features from another class?
Question 7: What is the superclass of all classes in Java?
Question 8: Which keyword is used to prevent method overriding?
Question 9: What is the purpose of the 'this' keyword?
Question 10: Which access modifier provides the widest accessibility?
Question 11: Which of these is a checked exception?
Question 12: What is the purpose of the finally block?
Question 13: Which keyword is used to throw an exception explicitly?
Question 14: Which collection class maintains insertion order?
Question 15: What is the primary interface for all collections?
Question 16: Which Map implementation allows null keys and values?
Question 17: What is the purpose of the synchronized keyword?
Question 18: Which Java feature was introduced in Java 8?
Question 19: What does JVM stand for?
Question 20: Which method is used to compare two strings for equality?
Comments (0)
No comments yet. Be the first to comment!