can you create interface instance ?

Answer Posted / kcs

No, We cannot create an instance for interface. But we can
create a reference for an interface.

Is This Answer Correct ?    75 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should the method invokelater() be used?

584


What are the 8 primitive data types in java?

549


Explain the usage of this with constructors?

530


Can we have more than one package statement in source file ?

590


What does sprintf return?

589






What are the four integer types supported by java?

562


Name few "optional" classes introduced with java 8 ?

651


Explain about public and private access specifiers?

536


Why hashset is used in java?

538


What is locale in java?

577


Define the term string pool?

590


Can we have this () and super () together?

607


What is the difference between synchronized and synchronized block?

502


What about features of local inner class?

621


What happens if we override private method?

525