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
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
How many wrapper classes are there in java?
What is difference between string and new string?
What are register variables what are the advantages?
What is the difference between serial and throughput garbage collector?
What is bigger kb or mb?
What is the difference between I ++ and ++ I in java?
What is string length in java?
Is java 1.7 the same as java 7?
What is the numeric promotion?
What is the difference between a scrollbar and a scrollpane?
Is a string literal?
Is string a class?
What is a jit compiler?
How do you write a good declaration?