How does autoboxing work in java, when wrappers are null?

前端 未结 0 1330
孤城傲影
孤城傲影 2020-12-05 18:54

If I can use Integer as int, and int as Integer (wherever is required one over the other), why this code does give err:

public class Foo {
    Integer i;
             


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