InterviewSolution
Saved Bookmarks
| 1. |
What will be the output of the following code snippet? 1 public class OverloadingDemo2 {public static void main (String args[]){5show(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)1System.out.println("In StringBuffer Method"); |
|
Answer» 333333333333333333333333333333333333333333 |
|