get the app get the app       get the app       get the app
What is the difference between arrays and collection?


  • : 213
  • : 10
    Previous Next

    Array:
    You need to specify the size of an array at the time of its declaration. It cannot be resized dynamically.
    The members of an array should be of the same data type.

    Collection:
    The size of a collection can be adjusted dynamically, as per the user's requirement. It does not have fixed size.
    Collection can have elements of different types.

    you can suggest other answer in comment box


  • Exam: OOPS Interview QUESTIONS





    Close(X)
    Subscribe here for free mock test on IAS PCS SSC and other competitive exam. Signup here to get SSC CGL Solution and main exam study material