Page 1 of 1
About Question enthuware.ocajp.i.v7.2.828 :
Posted: Wed Aug 22, 2012 10:06 am
by ETS User
Isn't option 2 invalid because it's return type is int, while there is no return statement.
Re: About Question enthuware.ocajp.i.v7.2.828 :
Posted: Thu Aug 23, 2012 7:54 am
by admin
You are right. return statement is missing. This has now been fixed.
thank you for your feedback!
Re: About Question enthuware.ocajp.i.v7.2.828 :
Posted: Thu Aug 23, 2012 8:44 am
by javabeats
And it's also invalid because the opening bracket is after the comment (// 2).