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 are user defined exceptions?
Explain the difference between association, aggregation and inheritance relationships.
How are the elements of a gridbaglayout organized?
Which is the class in java?
Explain throw keyword in java?
What is the tradeoff between using an unordered array versus an ordered array?
What is singleton service?
What is the primary benefit of encapsulation?
Can we call virtual funciton in a constructor ?
What sorting algorithm does javascript use?
What do you mean by flow of struts?
What does @override mean?
What will be the default values of all the elements of an array defined as an instance variable?
What are encapsulation, inheritance and polymorphism?
When is the finalize() called? What is the purpose of finalization?