Help coderanch get a
new server
by contributing to the fundraiser

mohammed khan

Greenhorn
+ Follow
since Jun 22, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by mohammed khan

please explain what is happening in this line in detail

MyOuter.MyNested n = new MyOuter.MyNested();
thanks it worked but for all programs regarding packages will it work
not able to execute below 2 programs ?how to execute it .

package cert;
public class Beverage
{
}


package exam.stuff;
import cert.Beverage;
class Tea extends Beverage

{
public static void main(String argd[])
{
System.out.println("hello world");
}

}


I am able to compile above 2 programs but when i am executing i am geting exception in thread main. so how can i execute this Tea program