Difference between array and arraylist.

Answer Posted / ravikiran

array is the one which can save similar data typed elements.
And the size is limited.
arraylist is a collection which is capable of saving
different data typed objects,And is growable.

Is This Answer Correct ?    372 Yes 49 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is :: operator in java?

504


What is public/private protected in java?

541


Outline the major features of java.

563


What are mutable classes?

521


What are the different data types in java?

530






what are the states associated in the thread? : Java thread

591


What is the purpose of javac exe?

557


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

528


What is protected access modifier?

574


Differentiate between a constructor and a method? Can we mark constructors final?

671


Why should we use singleton pattern instead of static class?

458


What is oop principle in java?

544


What is variable explain?

524


what is heap memory?

654


Define an abstract class with reference to java.

573