I wonder if there is any difference if I declare the method as public or leave it undeclared like that :
void eat() {
System.out.println("This food is great");
}
public void eat() {
System.out.println("This food is great");
}
Does it have any crucial value to it?