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. … Read more ›...
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. … Read more ›...
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 ›...
Q8. What will be the statement you add so that you invoke Abc’s process( ) method? A8. super.process( ) will invoke parent class’s process( ) method. Q9. … Read more ›...
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. … Read more ›...