The static modififier can be applied to variables,methods,and even a strange kind of code that is not part of a method.(Java 2认证考试学习指南第3章)--B是错的i think E is error
解决方案 »
- 怎么使用java将amr格式的文件转换成mp3格式的
- 文件流close()方法使用的迷惑?
- Java mail抛出的一个异常:javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain; charset=UTF-8
- 日期格式问题
- 关于链接数据库,请牛人指教下
- 急:高手相助,关于java的内存问题
- 一个送分的问题!!!
- cvs我在release的时候报告错误:up-to-date check failed:〈文件名〉
- 麻烦,好大的麻烦!!
- java反射、泛型
- 伤脑筋问题
- system.out.println()不好使!!!
This is printed on the book.(English)P66
And I Have Not Change Any Word About It!
So...What Is the miss?
variable?
a. final
//可以的。
b. static
//方法内不可以声名STATIC变量
c. expressions
//INT A=8+9; OK
d. constants of non-primitive type
//INT A;或者 Object a;
e. initialized array(such as"{"Hello","Goodbye"}")
//Object a[][]=new Object a[][]{"Hello","Goodbye"} ok
这句话不正是说不能在方法内使用static吗?