Difference between array and arraylist.
Answer Posted / chinnu
Array:arrays is not for our requirement once we create a size next we cant change the size.in advance we cant estimate the size.its taking only homogeneous elements.
Array list:array list is same as collections and vectors.array list is or requirement we can change the size in advance also and estimate the size.its taking both homogeneous and heterogeneous elements .
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is the loop in java?
What is the difference between method overriding and overloading?
What restrictions are placed on method overriding?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
What is synchronization and why is it important in java programming?
Is arraylist sorted in java?
What is Recursion Function?
What is == in java?
Write a program to find the whether a number is an Armstrong number or not?
How do you square a number in java?
What is percentage in java?
Explain about public and private access specifiers?
What is the use of set in java?
What is methods in java?
Can constructor be protected in java?