Difference between array and arraylist.

Answer Posted / sharath

Array is collection of similar
data items.
ArrayList is a utill package its a collection.
Array can store primitive and fixed size.
ArrayList are Stores object only and resizable.

Is This Answer Correct ?    45 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is the singleton pattern considered to be an anti pattern?

472


What is the difference between hashmap and hashtable in java?

554


Write a java program to count the number of words present in a string?

533


How do you control extraneous variables?

501


Tell us something about an iterator.

544






What is java argument list?

520


What are functions in java?

496


Where is java located?

495


What is Java Annotations?

555


What's the purpose of using break in each case of switch statement?

506


How do you do exponents in java?

534


What is the difference between the ">>" and " >>>" operators in java?

503


How can you share data between two thread in Java?

522


What will happen if a thrown exception is not handled?

560


What is void in java?

588