Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class StaticDefault {
- private static final int foo;
- static {
- foo = getFoo();
- }
- private static int getFoo() {
- return foo;
- }
- public static final void main(String[] args) {
- System.out.println("Hi there, foo = " + foo);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement