Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1052 :

Posted: Mon Aug 06, 2012 3:52 pm
by Sevgi Insani
The code listing in the question has the following method:

Code: Select all

public void test() {
test1(10){} // 1
test1(10,20){} // 2
}
Can a method be called using curly braces? Suspecting my information, I tried to call a dummy method like that. The compiler gave an error as I expected.

Am I missing something?

Re: About Question enthuware.ocajp.i.v7.2.1052 :

Posted: Tue Aug 07, 2012 1:49 am
by admin
No, you are right. There should be a semicolon instead of { }. This has now been fixed.

thank you for your feedback!