Why are arrays useful in java?



Why are arrays useful in java?..

Answer / Mahima Singh

Arrays are useful in Java for several reasons: they provide efficient storage and manipulation of a fixed-sized collection of elements, they can be used for primitive types as well as objects, they allow for fast random access to their elements, and they can improve performance by reducing the number of object allocations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Explain the difference between abstraction and encapsulation.

1 Answers  


Why we need Finally with try? pls expain with ur example..

3 Answers   BitWise, HDFC, TCS,


What is difference between classpath and path variables in java?

1 Answers  


Variable of the boolean type is automatically initialized as?

1 Answers  


what is heap memory?

1 Answers   Tavant Technologies, Zensar,


What is the difference between a vector & an array list?

1 Answers   Agilent,


What is java used for?

1 Answers  


What are the changes in java.io in java 8 ?

1 Answers  


Can a private method be declared as static?

1 Answers   Global Logic,


What environment variables do I need to set on my machine in order to be able to run java programs?

1 Answers  


Java support what type of parameter passing ?

7 Answers   Wipro,


What is a class reference?

1 Answers  


Categories