public class B
{ public static void m1() { System.out.println("\n B class m1() "); }
}
C Code:
package varun;
import ram.A;
import sam.B;
public class C
{ public static int a = 111; public static void main( String args[] ) { System.out.println("C class Main Method "); System.out.println(A.a); B.m1(); }
}