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.

Comments

Popular posts from this blog

Read Images from a xlsx file using Apache POI

Struts 2 : Warning :No configuration found for the specified action: 'Login.action' in namespace: '/'

How to create mail message in FRC822 format