什么意思? Null = Java代码1.6上的BigInteger

问题描述 投票:-4回答:1
public BigInteger desemcri(BigInteger param){
    null = BigInteger.vslueOf(0L);
    return param.modPow(this.a,this.b);
}

这样做正确吗?

null = BigInteger.vslueOf(0L);

如果正确,为什么?如果不正确为什么?和这是什么意思?

java
1个回答
0
投票

您不能为nothing赋值。没什么永远不会。如果不是什么,那就是某种东西。在您的情况下,它将是BigInteger

BigInteger b = BigInteger.valueOf(0L); // you can do this

BigInteger b = null; // you can do this

null = // you can't do this
© www.soinside.com 2019 - 2024. All rights reserved.