为什么unsigned int y=200; float f=1e4;是错误的

为什么unsigned int y=200;
float f=1e4;是错误的

unsigned int 是C++的写法,Java只有int和long
float f=(float)1e4;需要一个转换才行