Predict the output of the following code
public class College
{
int fee=30000;
public College (int fee)
{
System.out.println("local variable fee "+fee);
System.out.println("instance variable fee"+this.fee);
}
public static void main(String[] args)
{
College c=new College (20000);
}
}



Posted on by