Given:
1. package test1;
2. public class Test1{
3. static int x = 32;
4. }
1. package test2;
2. public class Test2 extends test1.Test1{
3. public static void main(String[] args){
4. System.out.println("x=" + x);
5. {
6. }
What is the result?
Answer:
Compilation fails because of an error in line2 of class Test2