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
How do you escape json?
State two differences between C and Java.
How to create a custom exception?
How do we access static members in java?
How do you declare an empty string?
What is the difference between import java.util.date and java .util?
What is an i/o filter?
Write a program in java to find the maximum and minimum value node from a circular linked list.
How define set in java?
What are the differences between heap and stack memory?
What is a website container?
Can a class be declared as protected?
What is the difference between I ++ and ++ I in java?
What’s the difference between callable and runnable?
What is assembly used for?