Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Clazz {
- private final int x;
- {
- Clazz c = this;
- c.x = 42; // The final field Clazz.x cannot be assigned
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement