Finally, the collections framework was designed and developed primarily by Joshua Bloch, and was introduced in JDK 1.2. Later from JDK 1.2 onwards, JDK developers felt the need to have consistent support for reusable data structures. Easy enough !!īefore JDK 1.2, JDK had some utility classes such as Vector and HashTable, and there was no concept of the Collection framework. Like in set theory, a set is a group of elements. What is Java Collections framework? What are its advantages?īy definition, a Collection is an object that can store a group of objects. # Java Collections Framework Questions 1. What is Comparable and Comparator interfaces? Which Collections Provide Random Access to the Items? How to Avoid ConcurrentModificationException while Iterating a Collection? What are Different Ways to Iterate a List? # Expert Level Collections Interview Questions.Difference between ArrayList and LinkedList? Difference between TreeSet and SortedSet? Difference between Iterator and ListIterator? Difference between Iterator and Enumeration? Difference between HashMap and HashTable? What are Different Views provided by Map Interface? What is ConcurrentHashMap? How Does It Maintain Concurrency? What are IdentityHashMap and WeakHashMap? What is a Map? What are Core Classes Implementing Map Interface? Can We Add a Null to a TreeSet or HashSet? What is a Set? What are Core Classes Implementing Set Interface? What is a List? What are Core Classes implementing List? Why Map interface does not extend Collection interface? Why Collection does not extend Cloneable and Serializable interface? What is Java Collections framework? What are its advantages?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |