Answer Posted / bharat vandar
No we can instantiate interface directly.but we can create
instantiate of interface in directly,only class can create
an object of interface
interface x
{
public void abc();
}
class ac implements x
{
x at = new ac();
public void abc()
{
System.out.println("Bharat");
}
}
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
When should the method invokelater() be used?
How many types of gc are there in java?
What are the legal operands of the instanceof operator?
Can the interface be final?
How do you sort a string in java?
What is thread count in java?
What are the escape sequences in java?
What is abstract class? Explain
Is cout buffered?
How to find the largest value from the given array.
How do you know if a value is nan?
What do you mean by scope of variable?
How long will it take to learn java?
What is integer valueof?
What is a java object and java application?