class Forest {
void lion(){
System.out.println("king of the jungle");
}
public static void main (String a[]){
Forest f = new Forest();
f.lion(); //call 1
Forest j = f;
j.lion(); // call 2
}
}
what is the difference between call 1 & call 2?
If object f is removed what happens in call 2?
Additionally, get a tool like Eclipse that will issue warnings when you don’t follow the naming conventions for Java. Better get used to it at the beginning.