What is written in the answer:
..."Since Runnable is an interface, cannot be instantiated like this. But you can do : Thread t = new Runnable(){ public void run(){ } };"...
is not correct. What you can do is: Thread t = new Thread(new Runnable() {
public void run(){ }
});
Regards, Leo
About Question enthuware.ocajp.i.v7.2.1189 :
Moderators: Site Manager, fjwalraven
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1189 :
You are right. The type of the variable should be Runnable:
Should be fixed asap.
thank you for your feedback!
Code: Select all
Runnable t = new Runnable(){
public void run(){ }
};
thank you for your feedback!
Re: About Question enthuware.ocajp.i.v7.2.1189 :
It would be nice if your test engine reminder the user if the proper number of options has not been selected... this is what the real exam does.
Thanks,
Robert
Thanks,
Robert
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1189 :
Thank you for your suggestion, Robert. We will get on it right away.Guest wrote:It would be nice if your test engine reminder the user if the proper number of options has not been selected... this is what the real exam does.
Thanks,
Robert
It is partially there because it doesn't let you select more than the required number of correct options. Nevertheless, it should give out a warning if lesser than required number of correct options are selected.
Paul.
Who is online
Users browsing this forum: No registered users and 20 guests