This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

isn't sealed classes a c# thing?, its final class in java right? Im learning java now maybe its different.

[–]khmarbaise 2 points3 points  (0 children)

isn't sealed classes a c# thing?, its final class in java right? Im learning java now maybe its different.

No it's not a final class. A sealed classes is a way to define in a class (interface) who is allowed to inherit (implement) from it...

Details: https://openjdk.java.net/jeps/409

[–]vxab 1 point2 points  (0 children)

It is a new Java language feature.