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 the difference between an object-oriented programming language and object-based programming language?
How does arraylist size increase in java?
What is the difference between processes and threads?
How do you create a reference in java?
What is array class in java?
What is a flag value?
What restrictions are placed on method overriding in java programming?
23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an
How many arguments can a method have java?
How arrays are stored in memory in java?
Why java is considered dynamic?
What are 3 boolean operators?
What are the advantages of compiled language?
Explain the protected field modifier?
What is stream api in java8?