Java Online Test | Know Your Java Knowledge
Don't become Obsolete & get a Pink Slip
Follow DataFlair on Google News & Stay ahead of the game
1. Core Java Online Test
Get free Java online test and prepare yourself for Java exam. This Java online test will help you to test your Java performance. This practice set for Java contains the top 25 Java MCQ, which will help you to boost your confidence. If you find yourself good in Java online test, then prepare yourself to crack Java interview questions by following our Java interview guide.
So, let’s check your Java performance. ALL THE BEST! for Java online test.
Q.1 Which interface should be implemented for sorting on basis of many criteria’s?
Correct!
Wrong!
Q.2 Can two threads on same ConcurrentHashMap object access it concurrently
Correct!
Wrong!
Q.3 LinkedHashSet implements:
Correct!
Wrong!
Q.4 What will be the output of the following code -

Correct!
Wrong!
Q.5 In WeakHashMap
Correct!
Wrong!
Q.6 A EnumSet
Correct!
Wrong!
Q.7 Iterator returned by HashSet is
Correct!
Wrong!
Q.8 Iterator returned by CopyOnWriteArraySet is
Correct!
Wrong!
Q.9 Iterator returned by TreeSet is
Correct!
Wrong!
Q.10 Iterator returned by LinkedHashSet is
Correct!
Wrong!
Q.11 Iterator returned by ConcurrentSkipListSet is
Correct!
Wrong!
Q.12 Which List is synchronized?
Correct!
Wrong!
Q.13 Which Set is synchronized?
Correct!
Wrong!
Q.14 What will be the output of the following code -

Correct!
Wrong!
Q.15 What is the significance of using instanceOf operator and getClass() in equals method?
Correct!
Wrong!
Q.16 What will be the output of the following code –

Correct!
Wrong!
Q.17 What will be the output of the following code -

Correct!
Wrong!