package packA;
public class Beverage {
public static void main(
String[] args) {
System.out.println("hi");
}
}
----------------------------------------------------
package packB;
import packA.Beverage;
class Tea extends Beverage {
}
--------------------------------------
and when i run Tea class..
I get the output as"hi"!!!
How does this happen??