Times group Interview questions: Method overloading/overriding

is it overloading? will it compile, if not then why ?
  public void show(String a){
    //.....
    //...
  }



   public int show(String a){
    //.....
    //...
   }


 Solution: It is not mothod overloading as argument list must be different. It will not compile and compiler will give duplicate method error.

Popular posts from this blog

Android: where to run keytool command in android

Can not connect to git using ssh (Permissions 0644 for '/root/.ssh/id_rsa' are too open.

Upload file on Google cloud storage using Java servlet on google app engine