Answer Posted / nagendra prasadu gandla
Yes you can instanciate but you have to implement the
methods of interface at the time of instanciation itself.
EX:
interface X
{
void abc();
}
class a
{
X z=new X(){void abc(){return;}};
}
Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
What super () does in java?
What are the steps involved to create a bean?
How do you represent a space in regex java?
How do you reverse sort in java?
What is bufferedwriter?
Can we execute a program without main?
Is empty .java file name a valid source file name?
Can we override the static method?
How many digits can a float hold?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
How do you find the absolute value?
What is difference in between java class and bean?
What is final access modifier in java?
how does the run() method in runnable work? : Java thread
What are the 6 mandatory procedures for iso 9001?