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
How is java created?
What is the exact difference in between unicast and multicast object? Where we will use?
What methods are used to get and set the text label displayed by a button object?
How are destructors defined in java?
Why singleton pattern is better than creating singleton class with static instance?
What is static block?
Break statement can be used as labels in java?
Which package is always imported by default?
Explain about java sdk?
How is it possible for two string objects with identical values not to be equal under the == operator?
Is it compulsory for a try block to be followed by a catch block in java for exception handling?
Explain what access modifiers can be used for methods?
What is the difference between jfc & wfc?
What do you mean by stack?
What is the size of integer?