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 Error, defect,fault, failure and mistake?
Why do we need singleton class?
Explain when classnotfoundexception will be raised ?
How do you classify Dialog Box?
Is java a virus?
Which is illegal identifier in java?
How to invoke external process in java.
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
Can we have two main methods in a java class?
Explain the access modifiers for a class, method and variables?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
What is meant by null and void?
How we create object in copy constructor?
What do you understand by the bean persistent property?
Does java arraylist maintain insertion order?