what will be the output of the following code snippet?
1 public class OverloadingDemo
2 {
public static void main (String args[])
{
5
show(null);
6 }
public void show(Object o)
8
{
System.out.println("In Object Method");
19 }
public void show(String o)
{
System.out.println( 'In String Method");
}
public void show(StringBuffer o)
1
System.out.println("In StringBuffer Method");
Answers
Answered by
0
Answer:
in stringbuffer method
Similar questions