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


Please Help Members By Posting Answers For Below Questions

What is the difference between an object-oriented programming language and object-based programming language?

558


How does arraylist size increase in java?

527


What is the difference between processes and threads?

529


How do you create a reference in java?

506


What is array class in java?

588






What is a flag value?

510


What restrictions are placed on method overriding in java programming?

535


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 tag?. code,height & width. 26. What does 'CODEBASE' in an applet tag specify?. Files absolute path.

2050


How many arguments can a method have java?

537


How arrays are stored in memory in java?

503


Why java is considered dynamic?

745


What are 3 boolean operators?

526


What are the advantages of compiled language?

567


Explain the protected field modifier?

588


What is stream api in java8?

530