How to find the size of an array
a)array.length()
b)array.length
c)array.size()
d)array.size
Answer Posted / nagesh
length is a public static final variable in an array which
will specify the capacity of that array. length() is a
function on strings to find number of characters in that.
| Is This Answer Correct ? | 11 Yes | 6 No |
Post New Answer View All Answers
What does sizeof return?
How we can execute any code even before main method?
explain what is transient variable in java?
Is passing by reference faster?
Can we use catch statement for checked exceptions?
What defines function?
What is a native method in java programming?
If we don’t want some of the fields not to serialize how to do that?
What is array pointers ?
Can we have multiple classes in single file ?
What is the collections api?
What is the significance of continue jump statement? Explain with an example.
What is the numeric promotion?
What is a class in java?
What is overloading and overriding in java?