
Asked in TCS and 9 others
What are the key differences between an Array and an ArrayList, and can you provide examples?

AnswerBot
1d
Arrays are fixed-size, while ArrayLists are dynamic and can grow or shrink in size.
Size: Arrays have a fixed size, e.g., String[] arr = new String[5];
Dynamic Resizing: ArrayLists can change size, e.g....read more
Anonymous
3y
An array is a fixed-length data structure. ArrayList is a variable-length data structure.
Anonymous
3y
An array is a fixed-length data structure. ArrayList is a variable-length data structure.
Add answer anonymously...
Interview Questions from Popular Companies

3.7
• 8.7k Interviews

4.0
• 5.4k Interviews

3.5
• 4.2k Interviews

3.6
• 8k Interviews

3.7
• 6k Interviews

3.7
• 6.2k Interviews

3.5
• 4.2k Interviews

3.7
• 5.1k Interviews
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

