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
What does opcode mean?
List the interfaces which extends collection interface?
Explain when noclassdeffounderror will be raised ?
How do you control extraneous variables?
What is boolean flag in java?
What is a default constraint?
What is an array length?
What is the advantage of OOP in java?
What is the maximum size of byte array in java?
What is meant by class loader? How many types are there? When will we use them?
Explain access modifiers in java.
What are the main uses of this keyword?
What is the meaning of 3 dots in java?
How do I compare two strings in word in java?
Can a class have 2 constructors?