阅读背景:

Java多态互相排列子类型

来源:互联网 

I know that Java is static language, and there is dynamic check when it comes to arrays : but I can't understand why this happen, can someone explain to me this example in both cases when : A[] is sub-type to B[], or B[] is sub-type to A[] ? which will fail and why ?I know that Java is static language, and there




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: