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. 1. HashSet is implemented…



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?



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?



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? A16. The memory will still be 15MB because Java…



300+ Java & Big Data FAQs - Quick Prep

Java & Big Data Tutorials

Top