Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. package interfaces;
  2.  
  3. interface CoolInterface{
  4. public static void staticMethod(){
  5. System.out.println("static method.");
  6. }
  7. // static methodlar,
  8. // private methodlar tanimlanabiliyor.(java 9 da geldi.)
  9. private static void staticTestMethod2(){
  10. System.out.println("private static method.");
  11. }
  12. }
  13. public class InterfaceFeatureTest01 {
  14.  
  15. public static void main(String[] args) {
  16. CoolInterface.staticMethod();
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement