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


Please Help Members By Posting Answers For Below Questions

How is java created?

527


What is the exact difference in between unicast and multicast object? Where we will use?

552


What methods are used to get and set the text label displayed by a button object?

550


How are destructors defined in java?

563


Why singleton pattern is better than creating singleton class with static instance?

528






What is static block?

579


Break statement can be used as labels in java?

547


Which package is always imported by default?

539


Explain about java sdk?

574


How is it possible for two string objects with identical values not to be equal under the == operator?

520


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

586


Explain what access modifiers can be used for methods?

560


What is the difference between jfc & wfc?

586


What do you mean by stack?

628


What is the size of integer?

579