option 4 explanation:
Since Runnable is an interface, it cannot be instantiated like this. But you can do : Runnable r = new Runnable(){public void run(){ }};
Moderator: admin
Since Runnable is an interface, it cannot be instantiated like this. But you can do : Runnable r = new Runnable(){public void run(){ }};
Users browsing this forum: No registered users and 79 guests