CAN AN INTERFACE HAVE A CLASS?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 549  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 Apr-27-2015 11:52:13 PM

Answer

NEWSLETTER

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