Difference between array and arraylist.

Answer Posted / abhay shukla

1) Array is the one which can save similar data type
elements and the size is limited.
2) Array list is a collection which is capable of saving
different data typed objects, and is grow able.
3) Array is the collection of values of the same data type.
Array list is a class

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is variable and example?

601


How is it possible for two string objects with identical values not to be equal under the == operator?

616


Can a class extend 2 classes in java?

654


What is meant by binding in rmi?

634


What is the current version of java?

639






Can a class extend more than one class?

720


What steps are taken when the OS shifts from one-thread execution to another?

1001


Why do we need wrapper classes?

678


What will happen to the exception object after exception handling?

675


What is an iterator java?

629


Explain the reason behind ending a program with a system.exit(0)?

684


Why synchronization is important?

669


Can we have a method name same as class name in java?

676


Is java based on c?

646


What do bitwise operators do?

622