Multiple choice technology programming languages

output of below Program public static voi main(String[] args) { ArrayList; al=new List();//1 al.add("bima");//2 al.add("hidimba");//3 System.out.println(al.size());//4 }

  1. Runtime Exception

  2. Compilation error at line 1

  3. 2

  4. Compilation error at line 2

  5. Compilation error at line 3

  6. Compilation error at line 4

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

The code has a compilation error because 'void' is misspelled as 'voi' in the method signature. Additionally, the syntax 'ArrayList;' is incorrect, and List is an abstract interface that cannot be instantiated directly with 'new List()'. The compilation fails at line 1 due to the typo in the method declaration.