Home > Java Programming > Quizzes > Core Java Fundamentals Test
Core Java Fundamentals Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 25% Most missed: “The TreeMap class is Java's implementation of which data structure?”
Core Java Fundamentals Test
Time left 00:00
25 Questions

1. How can you stop your class from being inherited by another class?
2. A Guarded Block is a concurrency idiom in which:
3. What is the difference between a checked and unchecked exception?
4. Which of these is true?
5. If we want a class not to be overridden - the class must be done as
6. Given the code: Integer i= new Integer('1'); if (i.toString() == i.toString()) System.out.println('Equal'); else System.out.println('Not Equal');
7. Livelock describes a situation in which two or more threads block each other - because:
8. Which one of the following statements is true about threads in Java
9. The TreeMap class is Java's implementation of which data structure?
10. Which option is true for StringBuffer and StringBuilder
11. What is @Override annotation used for?
12. What is the output? public static void main(String[] args) { int x=10; if(x++ > 9 && x++ == 12){ ++x; } System.out.println(x); }
13. Complete the sentence: One may extend a class from ...
14. What is auto boxing?
15. What is a LinkedHashSet?
16. java.util.Collection is:
17. If a method or variable is marked as having the 'private' access level - then it can only be accessed from:
18. Immutable objects are always...
19. You need to keep a list of one million objects sorted at all times having 100 random inserts and delete per second. Reads from the list are always done in sorted order. You would:
20. What type should you use for floating point monetary calculations?
21. Finally is used to....
22. When creating a user defined class for storing objects in a HashMap - which method(s) should be overridden?
23. Which option is true for StringBuffer and StringBuilder
24. What is an example of proper capitalization for a class name?
25. ??If the class X extends the class Y - wich of these is a polymorphic sentence?