fork download
  1. class Example
  2. {
  3. public static void main (String[] args) throws java.lang.Exception
  4. {
  5. System.out.println("Ran at " + new java.util.Date());
  6. }
  7. }
  8. class A {
  9. private A() {
  10. }
  11. }
  12. class B extends A {
  13. private B() {
  14. super(); // COMPILATION FAILS HERE
  15. }
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:14: error: A() has private access in A
		super();    // COMPILATION FAILS HERE
		^
1 error
stdout
Standard output is empty