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

Write java program to reverse string without using api?

541


what is thread in Java ?

612


Detail discussions on JVM, memory management and garbage collector.

542


What are the different types of java?

541


Explain what pure virtual function is?

581






What is the syntax and characteristics of a lambda expression? Explain

533


Why string is a class?

534


What is a map in java?

535


What are the basics of core java?

532


Which is faster string or stringbuilder?

504


What all methods are used to prevent thread execution ?

541


What is java thread dump, how can we get java thread dump of a program?

557


Is hashmap thread safe?

545


Explain a situation where finally block will not be executed?

561


Can you explain the final method modifier?

549