What is difference between array and collection?

AnswerBot
1y

Arrays are fixed in size and can store elements of the same type, while collections are dynamic and can store elements of different types.

  • Arrays have a fixed length, while collections can grow or shri...read more

Anonymous
2y

Arrays are fixed in size that is once we create an array we can not increased or decreased based on our requirement.

Whereas Collection are growable in nature that is based on our requirement. We can i...read more

Help your peers!
Add answer anonymously...
MindGate Solutions Java Developer Trainee Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter