Inheritance is great for code reuse. To restrict the overuse or misuse of inheritance, sealed classes and interfaces were introduced.
In which version of Java were sealed classes introduced first as a preview?
a) Java version 9
b) Java version 11
c) Java version 15
d) Java version 17
Created by Nancy N.
@14:02 02-Jun-2025
No comments:
Post a Comment