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 is string immutable in java?
Can you write a java class that could be used both as an applet as well as an application?
What is a percentage sign called?
What is hashset in java?
What are checked exceptions?
How do you do exponents in java?
What does it mean that strings are immutable?
What is the point of java?
Describe the various concepts related to object oriented programming (oop).
What is bubble sorting in java?
What does s mean in regex?
Can we extend singleton class?
What are autoboxing and unboxing? When does it occur?
What is the importance of finally block in exception handling?
What is regex in java?