Answer Posted / subhash
No.We cannot create instance for interface.But we can
create reference to an interface.We can implement the
interface by creating sub class(implementation class) and
creat instance to the sub class, then you can create
reference to the interface by assigning instance of sub
class to the interface reference variable.
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between runnable and callable interface in java?
Can you call one constructor from another if a class has multiple constructors?
What are the different types of collections in java?
What is meant by singleton class?
What does a za z0 9 mean?
What is immutable class in java?
what is function overloading in java?
How to declare an arraylist in java?
What are namespaces in java?
What is meant by object oriented programming – oop?
What are conditionals and its types?
What is hashmap in java?
Give a brief description of java socket programming?
What do you mean by formatting?
What is argument in java?