Page 1 of 1

About Question enthuware.jwpv6.2.928 :

Posted: Tue Aug 28, 2012 9:14 am
by viva
About option 1...It is considered wrong...but I think it is possible to define "method local inner class" and put the method there...

Re: About Question enthuware.jwpv6.2.928 :

Posted: Thu Aug 30, 2012 8:01 pm
by admin
I see what you mean. Technically, you are right but that will make the question too complicated for the exam. I think it is good that you pointed it out here but I am not sure if it is a good idea to make it a right option.

May be the option itself can be removed?

Re: About Question enthuware.jwpv6.2.928 :

Posted: Fri Aug 31, 2012 6:05 am
by viva
Yes, I agree it might become "too scjp type of question" :)))))

So maybe what you suggest is a proper way to solve this :)

Re: About Question enthuware.jwpv6.2.928 :

Posted: Sun Jul 14, 2013 6:02 am
by JoeAllen
The correct answers:
2.<%! public void m1() { ... } %>
4.<%! public void m1() { ... }; %>

The difference is one has ";" and the other does not. How can both be right?

Re: About Question enthuware.jwpv6.2.928 :

Posted: Sun Jul 14, 2013 7:30 am
by admin
Because semi colon is redundant here.