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

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
Sevgi Insani
Posts: 4
Joined: Tue Jul 24, 2012 12:12 pm
Contact:

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

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

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

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

Post by admin »

No, you are right. There should be a semicolon instead of { }. This has now been fixed.

thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests