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
Why is java multithreaded?
what is thread? : Java thread
Explain about static nested classes in java?
What about features of local inner class?
Explain numeric promotion?
Does java isempty check for null?
What are the differences between the constructors and methods?
What is an example of a conditional statement?
Explain the difference between jdk, jre, and jvm?
What is static block?
Is oracle charging for java?
Write a java program to print fibonacci series?
What is the history of java?
Say any two properties in beans?
How do you check whether the list is empty or not in java?