public class MoreSpecificSuperApplies
{
  public static void main (String[] args)
  {
    new XYZ ().execute ("some string");
  }

  private static class ABC
  {
    void execute (String arg)
    {
      System.out.println ("execute(String) called");
    }
  }

  private static class XYZ extends ABC
  {
    void execute (CharSequence arg)
    {
      System.out.println ("execute(CharSequence) called");
      if (arg instanceof String)
	execute ((String) arg);
    }
  }
}

