Skip to main content

Posts

Showing posts from May, 2020

Java Collection Framework Most Important Questions

  Java Collection Framework Most Important Questions   Q:-1   What is Collection Framework ? A:-     Collection framework is a unified architecture or predefined java classes and interfaces that is used for implementing  a group          of objects in java. Q:-2   What is Collection ? A:-     A collection represents a group of objects. And it is root interface of java collection hierarchy. Q:-3   What is Collections ? A:-     Collections is a utility class in java which is present is java.util package for manipulating  data. It provides static method for             searching, sorting and more. Q:-4   What is difference between Array and Collection ? A:-                 Array                                                                            Collection                                                    1>     Array is a object in java which                    Collection is a interface which contains                contains similar data elements.                   method