primitive types

primitive types do not need new, but the value is not passed by reference.

int a = 0;

long b = 0L;

float c = 0f;

double d = 0d;

Reproduced in: https: //www.cnblogs.com/fanzi2009/archive/2009/12/23/1630755.html

Guess you like

Origin blog.csdn.net/weixin_33672400/article/details/94192665