can you create interface instance ?
Answer Posted / swati
we can't create instance of an interface..
but we can create reference of interface, which can refer
to upcoming object of the class who implements that
interface..
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What are data types in programming?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
What do you mean by platform independence? What is an interface?
What are abstract classes and anonymous classes?
What is java util?
Explain with example the concept of constant variable in java.
What does microservices mean?
What is final variable?
What are the different approaches to implement a function to generate a random number?
Define "Access specifiers" in java.
What is getclass () getname () in java?
What are the procedures?
What is isa relationship?
Why local variables are stored in stack?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?