How does java determine, which overloaded method will call, when one method with generic type parameter and other with non generic parameter?

后端 未结 0 1588
星月不相逢
星月不相逢 2021-02-19 13:25

A Java class cannot have two overloaded methods that will have the same signature after type erasure. Java will generate a compile-time error for the below scenario:



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