P

Praveen Singh • 36.81K Points
Coach

Q. How do you declare a dynamic array (ArrayList) of integers in Java?

  • (A) ArrayList numbers = new ArrayList();
  • (B) ArrayList numbers = new ArrayList();
  • (C) ArrayList numbers[] = new ArrayList[5];
  • (D) int[] numbers = new int[5];
  • Correct Answer - Option(B)
  • Views: 22
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics