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

What are the fileinputstream and fileoutputstream?

802


In a class implementing an interface, can we change the value of any variable defined in the interface?

694


Is 0 a real number?

769


What are "methods" and "fields"?

748


How thread scheduler schedule the task?

784






How do you check if a number is a perfect square?

709


Explain the difference between transient and volatile in java?

751


Explain java coding standards for classes or java coding conventions for classes?

829


How do you use substring in java?

730


Explain about varargs in java?

847


What is an object class?

740


What is this keyword in java?

769


Can you override static methods?

688


What is parse method?

729


Which is the best approach for creating thread ?

915