Which of the following variable declarations is incorrect? (a) List li = new ArrayList(); (b) List ld

Question:

Which of the following variable declarations is incorrect?

(a) List li = new ArrayList();

(b) List ld = new LinkedList();

(c) List ln = new ArrayList<>();

(d) List[] a = new ArrayList [10];

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: