In Java, if a class implements an interface and does not provide implementations for all its methods, it must be declared as ________.

  • Abstract Class
  • Concrete Class
  • Final Class
  • Static Class
When a class in Java implements an interface but doesn't provide implementations for all the interface methods, it must be declared as an abstract class. This is because an abstract class can have unimplemented methods, while concrete classes need to provide implementations for all interface methods they inherit.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *