Arrays in JavaSunday, May 25, 2014
Arrays in Java
Extracted Page: http://www.gcreddy.com/2014/03/arrays-in-java.html
1.What is an array?
A: Array is a group of related data items that share a common name.For instance, we can define an array name salary to represent a set of salaries of a group of employees.
Examples : salary
2.How do we allocate an array dynamically in java?
A:Arrays in java are static lists that can store a certain kind of variables. Therefore these arrays need to be initialized at the compile time.
i.Though arrays offer efficient performance, they are not space efficient when the data grows to thousands of entries. In this case, it is always a better id
Additional text has been truncated due to copyright reasons. Things without URLs and private things don't get truncated.