Difference between array and arraylist.

Answer Posted / abhay shukla

1) Array is the one which can save similar data type
elements and the size is limited.
2) Array list is a collection which is capable of saving
different data typed objects, and is grow able.
3) Array is the collection of values of the same data type.
Array list is a class

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does system.gc() and runtime.gc() methods do?

602


Tell me the Importent classes in net package?

1584


What loop means?

567


Which are the two subclasses under exception class?

531


Why is stringbuffer not immutable?

570






What is object class in java?

505


Can we create our own wrapper class in java?

548


Is java a security risk?

566


What are the basic interfaces of java collections framework?

611


what is the purpose of the runtime class?

555


What is replaceall in java?

547


What must a class do to implement an interface in java programming?

542


Why webdriver is an interface?

587


What is string pool?

629


What is difference between overloading and overriding in java?

531