fork(6) download
  1. class Parent
  2. {
  3. private int value = 42;
  4. }
  5.  
  6. class Child extends Parent
  7. {
  8. public static void main(String[] args)
  9. {
  10. System.out.println(super.vaue);
  11. }
  12.  
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:10: error: non-static variable super cannot be referenced from a static context
	System.out.println(super.vaue);
	                   ^
Main.java:10: error: cannot find symbol
	System.out.println(super.vaue);
	                        ^
  symbol: variable vaue
2 errors
stdout
Standard output is empty