Multiple choice

Which of the following statements is/are syntactically wrong?

  1. Stack st=new Stack();

  2. Stack<string> st=new Stack<>();</string>

  3. Stack<char> st<>new Stack<char>();</char></char>

  4. Queue<integer> qq=new LinkedList<integer>();</integer></integer>

  5. All of the above

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

It is not possible to pass primitive data types as arguments to generic classes.