Difference between array and arraylist.

Answer Posted / suhas

Array: can store primitive ArrayList: Stores object only
Array: fix size ArrayList: resizable
Array: can have multi dimensional
Array: lang ArrayList: Collection
framework

Is This Answer Correct ?    74 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is static variable stored in heap?

505


Can singleton class be serialized?

509


How many threads can java run?

554


explain the difference between jdk and jvm?

556


what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread

557






Can you extend main method in java?

614


Where pragma is used?

594


What is an example of procedure?

510


os is developed in c no java is more secured then c na why dont the os developed is developed using java

3518


What is a generic code?

524


Can an interface be defined inside a class?

515


What are drawbacks of singleton class?

518


What is enhanced loop in java?

544


Can I import same package/class twice?

488


what are abstract functions?

557