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
What is core java called?
What are the various access specifiers for java classes?
What is the difference between numeric and integer?
What are aggregate functions explain with examples?
What is difference between wait and notify in java?
Is java se free?
How does list work in java?
What is java console application?
How does class forname work in java?
What is the constructor?
What is json parser in java?
What is casting in java programming?
Can we pass a primitive type by reference in java? How
What are the three best choices for a development environment?
How will you serialize a singleton class without violating singleton pattern?