Implementing an interface in Java - Why does javap output two methods with the same signature but different return type?

前端 未结 0 976
礼貌的吻别
礼貌的吻别 2021-02-13 20:57

Given this Java code:

interface I {
  Object getId();
}

class A implements I {
  public Long getId() {
    return null;
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题