Difference between array and arraylist.
Answer Posted / sitaram
Array is static,only one data type values are storing. Size
Does not grow, its fixed
ArrayList is dynamic,different data type values are storing.
By adding values, it grows
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Can we sort hashmap in java?
What do you understand by copy constructor in java?
What is a blocking method in Java?
Explain restrictions for using anonymous inner classes?
What is method overloading in JAVA? Why is it not present in C ?
What is the difference between call by reference and call by pointer?
What is methods in java?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
What is a list in java?
What does string intern() method do?
How does remove work in java?
What is output buffer?
Why does java have different data types for integers and floating-point values?
Is cout buffered?
What are the properties of thread?