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 is the difference between conversation & casting?
Can you explain inner class.
How do you print array in java?
What is exception hierarchy in java?
How can we avoid including a header more than once?
When parseint method can be used?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
What is double parsedouble in java?
How do you sort in descending order in java using collections sort?
What is the default size of arraylist in java?
Why do we create public static method in java?
Explain about automatic type conversion in java?
What is a boolean flag in java?
What is vector capacity in java?
What is the arraylist in java?