Sail E0 Webinar
Question
Choose all the lines which if inserted independently instead of "//insert code here" will allow the following code to compile:public class Test{ public static void main(String args[]){ add(); add(1);add(1, 2); }// insert code here}
Options:
A .  static void add(int[]... args){}
B .  static void add(int args...){}
C .  static void add(int... args, int y){}
D .  void add(Integer... args){}
E .  static void add(int...args){}
Answer: Option E

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers