int a;
static int a;
Run Code Online (Sandbox Code Playgroud)
两者都占用相同的内存
我今天刚刚来到这里,我不知道这样做的用法::
private static final float INDICATOR_RADIUS = 1.0f;
Run Code Online (Sandbox Code Playgroud)
这和
private final float INDICATOR_RADIUS = 1.0f;
Run Code Online (Sandbox Code Playgroud)
我不明白为什么他们(http://developer.samsung.com/android/samples/Golf)这样做了?他们多次使用这个