Difference between array and arraylist.

Answer Posted / mohit

1-array is used for value type. but array list is used for reference type.
2-array is used for fixed size but aaray list is dyanamically increase at run time.
3-you can't resize an array but you can do resize the array list.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c better than java?

712


What is this () in java?

741


Difference between start() and run() method of thread class?

789


How to add menushortcut to menu item?

729


Explain different ways of creating a thread?

734


What is the synonym of framework?

741


What is a java list?

795


explain autoboxing in java?

758


How to declare an arraylist in java?

673


Can we serialize singleton class?

748


What is a class object?

679


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

754


Is the empty set a singleton?

697


What do you understand by java?

730


Why java is not 100% object-oriented?

1150