Since the primitive holds the actual value and not a reference to an object, when you assign primitives you copy the contents from one place to another.

 
  • 由于主类型容纳了实际的值,而且并非指向一个对象的句柄,所以在为其赋值的时候,可将来自一个地方的内容复制到另一个地方。
今日热词
目录 附录 查词历史