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

What is the difference between Error, defect,fault, failure and mistake?

859


Why do we need singleton class?

724


Explain when classnotfoundexception will be raised ?

790


How do you classify Dialog Box?

834


Is java a virus?

715


Which is illegal identifier in java?

779


How to invoke external process in java.

768


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2563


Can we have two main methods in a java class?

760


Explain the access modifiers for a class, method and variables?

875


Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

848


What is meant by null and void?

726


How we create object in copy constructor?

853


What do you understand by the bean persistent property?

753


Does java arraylist maintain insertion order?

732