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 is meant by call by reference?
What advantage do java's layout managers provide over traditional windowing systems?
When should you use arraylist and when should you use linkedlist?
What is array length?
What are the properties of thread?
Describe the syntax of multiple inheritance? When do we use such an inheritance?
When does a class need a virtual destructor?
what is thread? : Java thread
Why do we need autoboxing in java?
What is hasnext in java?
What is difference between iterator access and index access?
What is string builder in java?
What are the different conditional statements?
Which number is denoted by leading zero in java?
Differentiate between a class and an object.