CAN AN INTERFACE HAVE A CLASS?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 675  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    Can an Interface have a class?

    Yes, they are static implicitly. If we define a class inside the interface, java compiler creates a static nested class

      Modified On Mar-28-2018 12:56:16 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!