How to find the size of an array
a)array.length()
b)array.length
c)array.size()
d)array.size

Answer Posted / jigar gandhi

Answer is b
array.length is for array
and
array.size() is for arraylist

Is This Answer Correct ?    37 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which method returns the length of a string?

564


What is function declaration?

524


What is the difference between jfc & wfc?

592


Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx

1602


give an example for encapsulation?

581






Enlist diffrent types of inheritance supported by java?

481


What are different types of references?

526


What is the difference between length and length () in java?

523


What is prime number in java?

532


what are the states associated in the thread? : Java thread

591


Explain when noclassdeffounderror will be raised ?

616


What is singleton class in java and how can we make a class singleton?

568


What is array length?

501


What is the use of private static?

531


What is getkey () in java?

572