Hi All,
I am trying to compile the below code.
public class Test{
public static void main(
String args[]){
Test question = new Test();
question.method(null);
}
public void method(StringBuffer o){
System.out.println("Object Verion");
}
public void method(String s){
System.out.println("String Version");
}
}
But i am getting error like The method method(StringBuffer) is ambiguous for the type Test.
I am looking if any one could explain me about this error.
Thanks,
Yasasvi