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

Answers were Sorted based on User's Feedback



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

Answer / jigar gandhi

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

Is This Answer Correct ?    37 Yes 1 No

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

Answer / ashish shinkar

array.length

Is This Answer Correct ?    18 Yes 2 No

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

Answer / somasekhar

answer is b

Is This Answer Correct ?    16 Yes 1 No

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

Answer / 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

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

Answer / sivadasan

Answer 'C'

Is This Answer Correct ?    3 Yes 17 No

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

Answer / krishna

array.lenth()

Is This Answer Correct ?    1 Yes 15 No

Post New Answer

More Core Java Interview Questions

What is bytecode in java ?

0 Answers  


What is file in java?

0 Answers  


Distinguish method overloading and method overriding

4 Answers   Tech Mahindra,


What do you understand by garbage collection in Java? Can it be forced to run?

0 Answers   TCS,


What do you mean by flow of struts?

0 Answers   Amdocs,






When do I need to use reflection feature in java?

0 Answers  


What is variable and rules of variable?

0 Answers  


What are the default and parameterized constructors?

0 Answers  


Why are variables important in research?

0 Answers  


why operator overloading is removed in java?

1 Answers  


What is the difference between panel and frame ?

7 Answers   HCL, IBM, Raim Techno Solutions,


is memory to the abstract class allocated ..or objects not instantiated

7 Answers   Synechron, TCS,


Categories