Which are true in case of an interface?

Options
- all type of modifiers are allowed to an interface
- we instantiate an interface directly
- we can mark interface as final
- we can create object implementation to an interface


CORRECT ANSWER : we can create object implementation to an interface

Discussion Board
Interface

ANSWER : Yes ,we can create object implementation to an interface but we cannot call constructor of Interface using interface object like abstract class.
interface if = new interface(); XX invalid



sameer sawant 11-4-2019 08:54 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement