Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Java by (6.5k points)
How is it different from a normal interface?

1 Answer

0 votes
by (11.3k points)

These interfaces do not declare any methods that are needed to be declared by a generic interface. These only indicate the compatibility with specific operations. Some examples of these interfaces are as follows:

  • java.io.Serializable
  • Cloneable

Yes, these interfaces do not contain any methods but these are required to be implemented by a class in order for the class to be serialized or deserialized. If you're looking to learn java to understand the core of it, interfaces are one of the fundamental building blocks for that.

Related questions

Browse Categories

...