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
how to write a server program and sending the mails to the server using smtp protocol please help me
What is the default size of load factor in hashing based collection?
Which browsers work with java?
Why arraylist is used in java?
How do you create a sop?
What access modifiers can be used for class ?
What is composition in java?
What is ellipsis in java?
What is a buffer in computer?
What is the use of default method in interface in java?
Why stringbuilder is not thread safe in java?
What is collections framework?
What is methodological framework?
What is private protected in java?
What is lastindexof in java?