---
title: "Can an Interface have a class?"  
description: "Can an Interface have a class?"  
author: "Anonymous User"  
published: 2015-04-27  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/2450/can-an-interface-have-a-class  
category: "java"  
tags: ["java", "interface"]  
reading_time: 1 minute  

---

# 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

## Answers

### Answer by Anonymous User

Yes, they are static implicitly. If we define a class inside the interface, java compiler creates a static nested class


---

Original Source: https://www.mindstick.com/interview/2450/can-an-interface-have-a-class

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
