posted 14 years ago
I created one source file named 'Beverage.java' as follows :
// Beverage.java
class Beverage // default access and is in the current working directory(package)
{
}
It compiled fine.
But ,
// Tea.java
class Tea extends Beverage // also default access and is in the current working directory(package)
{
}
When this Tea.java file is compiled , it is giving an error that " Cannot find class Beverage " . Why it is so , even they are in same package(current default package).
Thanks & Regards
Prashanth