Answer Posted / paletipatisrinu
No we can instantiate interface directly.but we can create
instantiate of interface in directly
interface i1
{
public void wish();
}
public class A implements i1
{
public static void main(string...arg)
{
i1 o1=new A();
o1.wish();
}
public void wish()
{
System.out.println("we can create instantiate in directly");
}
}
| Is This Answer Correct ? | 17 Yes | 1 No |
Post New Answer View All Answers
What is use of map in java?
Define Multiprogramming and Multiprocessing in java.
What is a buffer in computer?
What does a za z0 9 mean?
Can a method be overloaded based on different return type but same argument type?
What is the functionality of the stub?
How a variable is stored in memory?
How is string immutable in java?
Can keyword be used as identifier?
Why method overriding is used?
What is data type in java?
What is the access scope of protected access specifier?
What do you mean by inner class in java?
What do you mean by global variable?
What is token in java?