fork(9) download
  1.  
  2. interface MyInterface
  3. {
  4. public void run ( ) ;
  5. }
  6.  
  7. class MyClass // does not implement MyInterface
  8. {
  9. public void run ( )
  10. {
  11. System . out . println ( "Hello World" ) ;
  12. }
  13. }
  14.  
  15. class MyImplementationClass extends MyClass implements MyInterface
  16. {
  17. // no implementation here
  18. }
  19.  
  20. class Main
  21. {
  22. public static void main ( String [ ] args )
  23. {
  24. new MyImplementationClass ( ) . run ( ) ;
  25. }
  26. }
  27.  
Success #stdin #stdout 0.06s 215488KB
stdin
Standard input is empty
stdout
Hello World