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
Difference between collection, collection and collections in java?
give an example for encapsulation?
What is the lifetime and scope of a variable?
Explain about the security aspect of java?
Can a abstract class be declared final?
how to write a program for sending mails between client and server
What is the difference between procedural and object-oriented programs?
What is array initialization in java?
What’s meant by anonymous class?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
What is difference between calling start() and run() method of thread?
What is instance example?
What are different types of references?
What is static data type in java?
Does java vector allow null?