Input and Output

In order to perform type validation, we create two interfaces Input and Output.

They are empty interfaces or "Marker interfaces"

public interface Input {}
public interface Output {}

It's used for runtime type checks.

Last updated