fork download
  1. class LovePureImpure {
  2. static {
  3. System.out . println ( "Love is neither pure nor impure" );
  4. }
  5. public LovePureImpure() {
  6. System.out . println ( "Love is purely impure and impurely pure" );
  7. }
  8. public static void main( String[]
  9. args) {
  10. new LovePureImpure();
  11. Pure pure = null;
  12. Impure impure = new Impure();
  13. pure = new Pure();
  14. }
  15. }
  16. class Pure {
  17. static {
  18. System.out . println ( "I am pure Love" );
  19. }
  20. public Pure() {
  21. System.out . println ( "I am impure Love disguised as pure Love" );
  22. }
  23. }
  24. class Impure {
  25. public Impure() {
  26. System.out . println ( "I am impure Love" );
  27. }
  28. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
Love is neither pure nor impure
Love is purely impure and impurely pure
I am impure Love
I am pure Love
I am impure Love disguised as pure Love