Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test implements I1, I2 {
- // 'class Test inherits unrelated defaults for method() from types I1 and I2'
- public static void main(String[] args) {
- }
- }
- interface I1
- {
- default void method()
- { System.out.println("Interface 1");}
- }
- interface I2
- {
- default void method()
- { System.out.println("Interface 2");}
- }
Advertisement
Add Comment
Please, Sign In to add comment