Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.22 :

Posted: Sun Jan 06, 2013 9:44 am
by ETC User

Code: Select all

public class Varargs
{
   public void test()
   {
        test1(10){}       //1
        test1(10, 20){} //2
   }

   public static void main(String[] args)
   {
     new Varargs().test();
   }
   
   //insert method here.
}
This code will not compile:

Code: Select all

Varargs.java:5: ';' expected
        test1(10){}       //1
But there is no such option.

Re: About Question com.enthuware.ets.scjp.v6.2.22 :

Posted: Sun Jan 06, 2013 2:35 pm
by admin
You are right. This has now been fixed.

thank you for your feedback!