Difference between array and arraylist.

Answer Posted / nikhil agrawal

array contain the similar datatype element and their size is fixedd where as arraylist contain object and their size is not fixed as aaray and it can grow dynamically. and we can applied so many method on arraylist like add,remove,clear,size etc

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

772


What is a priority queue java?

693


Which class is the superclass for every class in java programming?

747


Is it possible to override private or static method in java?

727


Does java map allow duplicates?

643






What is widening and narrowing in java? Discuss with an example.

739


Explain about oops concepts.

823


What is java object name?

718


What does system out println () do?

760


What is method overloading in JAVA? Why is it not present in C ?

773


What is space character in java?

763


Is a boolean 1 bit?

806


Are private methods final?

643


What are the different types of inner classes?

732


What is a double?

794