Difference between array and arraylist.

Answer Posted / sitaram

Array is static,only one data type values are storing. Size
Does not grow, its fixed

ArrayList is dynamic,different data type values are storing.
By adding values, it grows

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does indexof return in java?

636


Explain about join() method?

639


What are the features of junit?

704


Explain about OOPS concepts and fundamentals.

695


Explain the difference between hashmap and hashtable in java?

584






What are dot operator queries?

721


What is the purpose of java?

654


Are static members inherited to sub classes?

743


When should I use stringbuffer?

659


What about main() method in java ?

655


What are the types of sockets in java?

629


What is a super method?

636


How will you serialize a singleton class without violating singleton pattern?

1606


Why java is called not pure object oriented language?

684


What is Hierarchy of exception?

724