aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Collections and GUI (GATE)
  • What is the initial capacity of Vector?
Multiple choice

What is the initial capacity of Vector?

  1. 16

  2. 10

  3. 20

  4. 12

  5. 18

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Default constructor of vector class will create a vector with a default initial capacity 10.

Keep practicing — related questions

  • What is the size and capacity of the Vector Num in the following code? Vector Num=new Vector(10)
  • Which of the following functions of vector class gives current capacity of the vector?
  • size_of([vector 2,3,4])
  • What is the default size of Vector in Java?
  • If we do ArrayList lst = new ArrayList(); What is the initial capacity of the ArrayList lst ?
  • Which of the following methods in vector class of java returns the string equivalent of the vector?
  • If 125 identical drops each of capacity C combines to form a big drop, what is the capacity of big drop?
  • Match the following: | || |---|---| |Column – I |Column – II| |A. Vital Capacity|1. TV+IRV| |B. Inspiratory...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy