Multiple choice technology programming languages

The following interface is valid. public interface Marker { }

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Java allows marker interfaces - interfaces with no methods. They are used to mark classes for special treatment by the JVM or compiler (e.g., Serializable, Cloneable). An empty interface declaration is syntactically valid and serves this purpose.