Hi,
what is the output of the following code snippet and plese explain the reason for the output.
class Demo
{
void eat(Object o)
{
System.out.println("Object");
}
void eat(String a)
{
System.out.println("String");
}
public static void main(String ap[])
{
new Demo().eat(null);
}
}

