Introduction to Java Collection framework

In spite of the fact that alluded to as a structure, it works so to speak library. The Java collections framework gives both interfaces that characterize different collections and classes that actualize them.
History of Java Collections Framework
JavaTportal provides basic and Advanced Java Collection framework Tutorial for beginners.
java Collection implementations in pre-JDK 1.2 of the Java platform included few information structure classes, however did not contain an collections framework. The standard methods for gathering Java articles were by means of the array, the Vector, and the Hashtable classes, which sadly were difficult to amplify, and did not actualize a standard part interface.
The collections framework was outlined and developed essentially by Joshua Bloch, and was presented in JDK 1.2. It reused numerous thoughts and classes from Doug Lea's Collections package, which was expostulated as a result.  Sun picked not to utilize the thoughts of JGL, on the grounds that they needed a conservative framework, and consistency with C++ was not one of their objectives.
this interface defines common functionality of all Collections. Java.util package contain classes and interfaces of collection framework. Classes like ArrayList, Vector,LinkedList, HashSet, TreeSet, LinkedHashSet, HashMap etc. use to add, reterive, remove, find and iterate the objects.

Benefits of the Java Collections Framework

The Java Collections Framework provides the following some important benefits:
1.     Reduces programming effort
2.     Allows interoperability among unrelated APIs
3.     Increases program speed and quality
4.     Reduces effort to learn and to use new APIs
5.     Reduces effort to design new APIs
6.     Fosters software reuse
 JavaTportal is providing free thousands of online working examples which you can use in your day to day software development. Pickup any tutorial from the tutorials library, start from the home of the tutorial and continue till its completion.

Some most important frequently asked Java Collections Interview Questions  for fresher

  1. What is the collection framework in java?
  2. What is a framework in Java?
  3. What is difference between Iterator and ListIterator?
  4. What is an arraylist in java?
  5. what is difference between Vector and ArrayList?
  6. What is the role of thread safety in Collection?
  7. How can a Collection is made unmodifiable?
  8. How can a Collection is made synchronized?
  9. What is type safe and why it is important?
  10. How can a Collection is made singleton?
  11. What is the role of hashCode() methos of Object class in Collection framework?
  12. What is the role of equals() method of Object class in Collection framework?
  13. What is the relation between equals() and hashCode() method?

No comments:

Post a Comment

PREPAIDCLOUD VIRTUALS CARD-SEND MONEY NOW

https:://www.prepaidcloud.tech (USD/Crypto)- Virtual Visa Card is one of the ecurrency virtual debit card which connect with astropay ...