Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface MyInterface {
- public static final int x = 99;
- }
- public class Test { // does not implement MyInterface
- static int x = 100;
- public static void main(String[] args) {
- System.out.println(Test.x); // 100
- System.out.println(MyInterface.x); // 99
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment