Discussion :: Inner Classes - General Questions (Q.No.5)
C Srinivas Mukund said: (Nov 29, 2013) | |
Answer B can be tempting but it is wrong the reason given below. If a class includes an interface but does not fully implement the methods defined by that interface, then that class must be declared as abstract. |
Abb said: (Apr 23, 2014) | |
How is b having correct syntax? A method definition passed as a parameter to a constructor? Which version of java is this? |
Prem said: (Jul 5, 2017) | |
How is [C]. Runnable r = new Runnable { public void run(){}}; wrong syntax?. Please explain. |
Post your comments here:
Name *:
Email : (optional)
» Your comments will be displayed only after manual approval.