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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
ETC User

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

Post 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.

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. This has now been fixed.

thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest