Difference between array and arraylist.
Answer Posted / vk
Array is a collection of similar data types,ArrayList is not you can store any type of data types in AL.ArrayList will autometically increase 50% of the size which we allocated previously, but Array wasn't.
ArrayList al= new ArrayList();
al.add("a");
al.add(10);
both can be accepted in ArrayList.
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Which sort is best in java?
How does arrays sort work in java?
What is the difference between serializable and externalizable interface?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
Why main() method is public, static and void in java ?
Can we override private constructor in java?
State the difference between creating string as new () and literal.
What is OOP Language?
Why parameters should be passed by reference?
How do you sort objects in java?
What does business logic mean?
Does A Class Inherit The Constructors Of Its Superclass?
Why java is call by value?
Is empty in java?
How can you add and remove nodes in jtree?