Difference between array and arraylist.
Answer Posted / mohit
1-array is used for value type. but array list is used for reference type.
2-array is used for fixed size but aaray list is dyanamically increase at run time.
3-you can't resize an array but you can do resize the array list.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the public field modifier?
How can we make a class virtual?
What is the += operator called?
How do you empty a list in java?
What does compareto () do in java?
What is difference between module and function?
What is the difference between break and continue statements?
What is parameter example?
What is a boolean field?
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
What does microservices mean?
What do you mean by Function Overloading in java?
Why should we use singleton pattern instead of static class?
Can we cast any other type to boolean type with type casting?