G
Gaurav
Hi .. kindly tell me the error in the following code
package test1;
public class Test1 {
static int x = 42;
}
package test2;
public class Test2 extends test1.Test1 {
public static void main(String args[]) {
System.out.println("x="+x); } }
package test1;
public class Test1 {
static int x = 42;
}
package test2;
public class Test2 extends test1.Test1 {
public static void main(String args[]) {
System.out.println("x="+x); } }