0

If we do a[].length. Can we call "length" a method in it. If yes, then of which library class contains this method?

Array

11th Aug 2016, 11:22 AM
Aditya Patil
Aditya Patil - avatar
3 Answers
+ 1
it is not a method but a property of array.
11th Aug 2016, 5:02 PM
Sharad Soni
Sharad Soni - avatar
+ 1
length is used to calculate or rather returns the length of array while length() returns the length of String.
11th Aug 2016, 8:35 PM
Abhinav
0
👍
12th Aug 2016, 3:57 AM
Aditya Patil
Aditya Patil - avatar