Difference between array and arraylist.

Answer Posted / brijendra kumar soni(xavient)

Array is the Coolection of similar type of object.the size
of array is fixed while Array list is the collection of
different data types and the size of array list is growable.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the selection sort algorithm?

737


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

1505


If you do not want your class to be inherited by any other class. What would you do?

666


Is singleton a bad practice?

673


What are "methods" and "fields"?

664






What is role of void keyword in declaring functions?

681


What are implicit objects in java?

640


Where is const variable stored?

611


Can we catch more than one exception in a single catch block?

709


How to stop a thread in java? Explain about sleep () method in a thread?

683


How many bits is a char?

622


Why do we use string?

673


How do you clear a method in java?

619


Can this keyword be used to refer static members?

631


Difference between throw and throws?

733