What is output?

  1. class A{
  2. int i=10;
  3. static void get(){
  4. System.out.println(i);
  5. }
  6. public static void main(String[] h){
  7. A.get();
  8. }
  9. }
output:
1.error in line 4
2.10
3.error in line 7
4.none

No comments: