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

Is 0 a real number?

593


Write a function for palindrome and factorial and explain?

661


What is externalizable interface?

584


What does sizeof return?

563


Define locale.

590






How does regex work?

528


What is a list in java?

510


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

597


Explain the polymorphism principle?

587


What is parameters example?

558


Why does java have two ways to create child threads?

472


Why main() method is public, static and void in java ?

600


Explain about varargs in java?

585


What is difference between pointer and reference?

510


Difference between static and dynamic class loading.

590