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

A shipment of 288 reams of paper was delivered each of the 30 classroom received an equal share of the paper any extra reams of paper were stormed after the pap
the sum of two numbers is 50 the first number is 43 less than twice the second number write and solve a system of equations to find the two numbers
Pyruvic acid enters the fermention cycle from what process
Guys, I really really need some help badly! I don't understand how to get the "GCF" aka greatest common factor. Can someone please explain this to me in full de
#17 PLZ help I don't know what to do?!?!?!
The Egyptians modified the chariot in what two ways?
how do you find the surface area of a octahedron
why was the house of burgesses important
What was one goal of the Populist Party?
a carpenter is making a circular table top with circumference 4.5 what is the radius of the table top in centmetres