5 years ago in Java Generics

Which collection class allows you to grow or shrink its size and provides indexed access to its elements, but whose methods are not synchronized?

[A] java.util.HashSet
[B] java.util.LinkedHashSet
[C] java.util.List
[D] java.util.ArrayList
Loading...
Next Question

Overall Stats

Attempted 108
Correct 58
Incorrect 6
Viewed 44

Answers

Guest
Guest
keerthi vallabaneni
keerthi vallabaneni - 3 months ago

keerthi vallabaneni from Nellore, India is saying java.util.ArrayList is correct answer

SHASHANK PANDEY
SHASHANK PANDEY - 4 months ago

SHASHANK PANDEY from Pune, India is saying java.util.ArrayList is correct answer

Guriqbal Singh
Guriqbal Singh - 6 months ago

Guriqbal Singh from Chandigarh, India is saying java.util.ArrayList is correct answer

Amrit Agrawal
Amrit Agrawal - 9 months ago

Amrit Agrawal from Bengaluru, India is saying java.util.ArrayList is correct answer

Nagalakshmi
Nagalakshmi - 11 months ago

Nagalakshmi from Bengaluru, India is saying java.util.ArrayList is correct answer

Related Questions

Which of the following is incorrect statement regarding the use of generics and parameterized types in Java?

  • [A] Generics provide type safety by shifting more type checking responsibilities to the compiler.
  • [B] Generics and parameterized types eliminate the need for down casts when using Java Collections.
  • [C] When designing your own collections class (say, a linked list), generics and parameterized types allow you to achieve
  • [D] All of the mentioned

Which of these instance cannot be created?

  • [A] Integer instance.
  • [B] Generic class instance.
  • [C] Generic type instance.
  • [D] Collection instances.