Difference between array and arraylist.
Answer Posted / pooja
Array:array is the one which can save similar data typed
elements.
And the size is limited.
Arraylist:it is also a type of array in which we can extend
size
dynamically.
syntax:
ArrayList ar=new ArrayList();
where ArrayList is a class
Is This Answer Correct ? | 23 Yes | 10 No |
Post New Answer View All Answers
Can a static method be final?
What is difference between jdk,jre and jvm?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What is replaceall in java?
What is a singleton in genetics?
What is scope & storage allocation of global and extern variables? Explain with an example
What is classes in java?
What is the difference between the direct buffer and non-direct buffer in java?
What is the difference between abstract classes and interfaces?
Explain importance of finally block in java?
Can we create object of static class?
What is bytecode in java ?
What are the different types of constructor?
What are the 5 types of research methods?
What is t in generics in java?