sealed classes in java 17 interview questions