Blog Archives

04: 7 Java Collection Quizzes

Q1. When is an object needs to implement the Comparable interface? a) When adding it to a HashSet. b) When adding it to a TreeSet. c) When adding it to a LinkedHashSet. d) When adding it to any Java Collection class A1 The answer is b.… Read more ...



Q01-Q07 written test questions and answers on core Java

Written tests can help short-list candidates and often used by recruitment agencies  and prospective employers. Here are some popular written test questions and answers. Note: Multiple choice questions may have more than one right answers. Q1. What will be the output of the following code snippet?… Read more ...



Q08-Q15 written test questions and answers on core Java

Q8. What will be the statement you add so that you invoke Abc’s process( ) method?

Read more ...


Q16-Q24 written test questions and answers on core Java

Q16. If there is a source array list with 15MB of data, and the you create a new target empty array list and copy the source to target with target.addAll(source). How much memory will be consumed after invoking the addAll(…) method?… Read more ...



Don't be overwhelmed by the number of Q&As & tech stacks as nobody knows everything, and often key Q&As at the right moment makes a difference.

500+ Java Interview FAQs

Java & Big Data Tutorials

Top