Collections in java interview questions1/10/2024 ![]() What are the main Concurrent Collection classes in Java?.What is the contract of hashCode() and equals() methods in Java?.What is the importance of hashCode() and equals() methods?. ![]() How does ConcurrentHashMap work in Java?.How is TreeMap class implemented in Java?.What is BlockingQueue in Java Collections?.How remove() method is implemented in a HashMap?.What is CopyOnWriteArrayList? How it is different from ArrayList in Java?.What are the different ways to iterate elements of a list in Java?.Why does Map interface not extend Collection interface in Java?.What is the increasing order of performance for following collection classes in Java?. ![]() What are the main differences between HashMap and ConcurrentHashMap in Java?.How will you insert, delete and retrieve elements from a HashMap collection in Java?.What is the difference between Array and ArrayList in Java?.What is the difference between peek(), poll() and remove() methods of Queue interface in java?.How will you convert an array of String objects into a List?.Which methods do we need to override to use an object as key in a HashMap?.What is the design pattern used in the implementation of Enumeration in Java?.What is the difference between Iterator and Enumeration in Java?.What is the difference between Queue and Stack data structures?.What are the Hash Collision resolution techniques?.What is Hash Collision? How Java handles hash-collision in HashMap?.Is it a good idea to use Generics in collections?.How can we synchronize the elements of a List, a Set or a Map?.How does hashCode() method work in Java?.What is the reason for overriding equals() method?.In Java, what is the purpose of Properties file?.What are the differences between Comparable and Comparator?.What are the differences between a HashMap and a TreeMap?.What are the similarities between a HashSet and a HashMap in Java?.What are the differences between a HashMap and a Hashtable in Java?.What are the major differences between a HashSet and a HashMap?.What is the significance of load factor in a HashMap in Java?.What is the default size of load factor in a HashMap collection in Java?.In Java, how will you decide when to use a List, Set or a Map collection?.What are the differences between a HashSet and TreeSet collection in Java?.What is the difference between a Set and a Map in Java?.What are the differences between a List and Set collection in Java?.In which scenario, LinkedList is better than ArrayList in Java?.What is the difference between an ArrayList and a LinkedList data structure?.What are the differences between Collection and Collections in Java?.What are the differences between the two data structures: a Vector and an ArrayList?.What is the difference between Iterator and Enumeration?.What is the difference between an Iterator and ListIterator in Java?.What are the Java Collection classes that implement Set interface?.What are the Java Collection classes that implement List interface?.How will you copy elements from a Source List to another list?.What is the difference between Collections.emptyList() and creating new instance of Collection?.How can you maintain a Collection with elements in Sorted order?.How will you remove duplicate elements from an ArrayList?.How will you run a filter on a Collection?.How will you convert an array of primitive integers int to a List collection?.How will you convert a List into an array of integers like- int?.How will you efficiently remove elements while iterating a Collection?.What are the Thread-safe classes in Java Collections framework?.What are the main differences between Collection and Collections?.What is the root interface of Collection hierarchy in Java?.What are the main benefits of Collections Framework in Java?.What is the difference between Collection and Collections Framework in Java?.Read Top 100 Java Collections Interview Questions & Answers book on Sample questions are: ![]() Then, in second pass go through only the difficult questions.Īfter going through this book 2-3 times, you will be very well prepared to face a technical interview on Java Collection for an experienced programmer. Once you go through them in the first pass, mark the questions that you could not answer by yourself. The difficulty rating on these Questions varies from a Junior level programmer to Architect level. It is a compilation of advanced Java Collection interview questions after attending dozens of technical interviews in top-notch companies like- Facebook, Google, Ebay, Amazon etc.Įach question is accompanied with an answer because you want to save your time while preparing for an interview. This book contains Java Collection interview questions that an interviewer asks. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |