rickyop2624 rickyop2624
  • 07-01-2021
  • Computers and Technology
contestada

Which of these method of ArrayList class is used to obtain present size of an object/

a. size()
b. length()
c. index()
d. capacity()

Respuesta :

anthougo
anthougo anthougo
  • 08-01-2021

Answer:

The method of ArrayList class which is used to obtain the present size of an object is:

a. size()

Explanation:

In ArrayList, the size() method provides the number of objects available in the collection, array, or list.  In Java programming, ArrayList forms a part of the collection framework and has a set of methods to access elements and modify them.  An ArrayList does not have a fixed-size data structure, unlike an Array, but continues to expand in size.

Answer Link

Otras preguntas

What is an inequality?
all organisms require a set of instructions that specify its traits. the instructions that are responsible for all the inherited traits of an organism
The ___ was a stage of prehistoric development? A Iron Age B Stone Age C tool Age D Bronze Age
though life in the late 1700s was completely different for most white women and slaves, what one thing did they typically have in common?
What makes gymnosperms especially suited for northern climates?
What is the idea of social justice in the book The Crucible
What is The uncondensed dna present in the nucleus
what is the quotient of 8.3 dividad by 4
In your own words, explain the periodic law.
What is pressure? weight of the atmosphere gravity per unit area force per unit area force per volume