class A
{
public void m1(String str)
{
System.out.println("I am from String agrument method");
}
public void m1(Object obj)
{
System.out.println("I am from Object argument method");
}
public static void main(String args[])
{
A aobj=new A();
aobj.m1(null);
}
}
Solution : -
"I am from String agrument method"
{
public void m1(String str)
{
System.out.println("I am from String agrument method");
}
public void m1(Object obj)
{
System.out.println("I am from Object argument method");
}
public static void main(String args[])
{
A aobj=new A();
aobj.m1(null);
}
}
Solution : -
"I am from String agrument method"
No comments:
Post a Comment