Difference between array and arraylist.

Answer Posted / nagarjunareddy.sannapareddy

array is a collection of similar type of data and the
capacity of array is fixed and it define with in system name
pace
array list it hold different type of data and the capacity
of hairstylist is increase dynamically it define withe in
system.collections name space

Is This Answer Correct ?    29 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an immutable object? How do you create one in java?

789


How many times finalize method will be invoked? Who invokes finalize() method in java?

765


How we can make copy of a java object?

841


Can a singleton class be inherited?

687


What is a ternary operator in java?

730






What are the object and class classes used for?

750


What means public static?

756


Write a program to reverse a number in java?

758


What is method overloading with type promotion?

892


Why vector class is used?

701


Is 0 true or false?

695


Can we have a try block without catch block?

735


what is difference betweem home interface and remote interface?

2314


What is a static method in java?

739


What is an object class?

744