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
Which method returns the length of a string?
What is function declaration?
What is the difference between jfc & wfc?
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
give an example for encapsulation?
Enlist diffrent types of inheritance supported by java?
What are different types of references?
What is the difference between length and length () in java?
What is prime number in java?
what are the states associated in the thread? : Java thread
Explain when noclassdeffounderror will be raised ?
What is singleton class in java and how can we make a class singleton?
What is array length?
What is the use of private static?
What is getkey () in java?