0

Do lists are like arrays in java?

10th Jul 2016, 10:21 AM
pranav
pranav - avatar
2 Answers
0
Arrays are a list of items, sequentially numbered. Each item in the list can be identified by its index, that is, its sequence number. In Java, all the items in array must have the same type, called the base type of the array. An array is a random access data structure; that is, you can get directly at any item in the array at any time.
12th Jul 2016, 5:17 PM
Priyam Kumar
Priyam Kumar - avatar
0
list is like array mostly unlike it can store different datatypes value in a single list.. but array can store only the type of objects it is created for..
13th Jul 2016, 11:15 AM
Subhankar Paul
Subhankar Paul - avatar