Home TechnologyProgrammingJava Subscribe to RSS

Can We Create Object Of Interface?

Answer Question

1 Answer - Sort by: Date | Rating

    Nope,


    Interfaces is Incomplete. Creating Objects is not allowed, as you cannot create objects of incomplete Entities (classes)


    it is the job of the Classes that implement the interface to make them concrete, or mark the class as abstract.


    hope it helps

    any further assistance, msg me



    1 0

    Rinav 

    answered 10 months ago

    Yes its abosolutely correct. We can not create an instance for interface. Interface can be implemented into any sub-class and by using subclass object we can call the method in the interface.
    Report
    Kabilan

    Kabilan

    commented 4 months ago

      More

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International