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…


Java Interview FAQs

800+ Java Interview Q&As

Top