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


Please Help Members By Posting Answers For Below Questions

What are user defined exceptions?

686


Explain the difference between association, aggregation and inheritance relationships.

637


How are the elements of a gridbaglayout organized?

644


Which is the class in java?

613


Explain throw keyword in java?

689






What is the tradeoff between using an unordered array versus an ordered array?

777


What is singleton service?

592


What is the primary benefit of encapsulation?

655


Can we call virtual funciton in a constructor ?

1859


What sorting algorithm does javascript use?

622


What do you mean by flow of struts?

871


What does @override mean?

618


What will be the default values of all the elements of an array defined as an instance variable?

651


What are encapsulation, inheritance and polymorphism?

615


When is the finalize() called? What is the purpose of finalization?

687