can you create interface instance ?
Answer Posted / arvind panwar
No, we can't create an instance of an interface but
reference variable can hold reference to object of its sub
class.
Is This Answer Correct ? | 46 Yes | 13 No |
Post New Answer View All Answers
What is unicode with example?
Can you sort a string in java?
What is difference between throw and throws ?
Explain the pointers in Java?
What are the difference between string, string builder, and string buffer in java?
Which variables are stored in heap?
How to calculate the length of a singly linked list in java?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
What is the purpose of garbage collection in java?
What is variable argument in java?
Is passing by reference faster?
What is the purpose of extern variable?
What is local declaration?
Explain the difference between private, public, package and protected in java?
What is the default execution method in java?