Home > DeveloperSection > Interviews > Can an Interface have a class?

Posted on    April-27-2015 11:49 PM

 Java Java  Interface 
Ratings:
 1 Answer(s)
  382  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    April-27-2015 11:49 PM

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

Don't want to miss updates? Please click the below button!

Follow MindStick