Java

本类阅读TOP10

·使用MyEclipse开发Struts框架的Hello World!(录像1)
·hibernate配置笔记
·AOP编程入门--Java篇
·linux下Tomcat 5.0.20 与 Apache 2 安装/集成/配置
·在win2003下整合了整合Tomcat5.5+ apache_2.0.53+ mod_jk_2.0.47.dll
·构建Linux下IDE环境--Eclipse篇
·Jsp 连接 mySQL、Oracle 数据库备忘(Windows平台)
·ASP、JSP、PHP 三种技术比较
·Tomcat5.5.9的安装配置
·AWT GUI 设计笔记(二)

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
关于SCJP1.4考试的一些需要注意的地方(四)

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

 

61Numeric expressions always result in at least int-sized result –never smaller.

62. Float-point numbers are implicitly doubles (64-bits)

63. Compound assignments (+=) perform an automatic cast.

64.shift operators can only be used on integers (octal,decimal,or Hexdecimal)

65.Threading and garbage collection are two of the few areas that are platform dependent.This

Is one of the reasons why Java is not suitable or realtime programming.

66.考试中也许会出现没有正确答案的情况

67You may access methods of a direct parent class through the use of super but classes further up the hierarchy are not visible.

68.float f=1/3; (right)

69.All the integer primitives in java are signed number (wrong because of  char)

70.There are no restrictions on the level of nesting for inner/nested classes ( 内部类没有层数的限制)

71Yield() is a static method and cause whatever thread is currently executing to yield its cycles.

72 switch(k) k may be char short int byte

73 Math.round(float) = int   Math.round(double) = long

74.Math.round(4.5)=5   Math.round(4.5)=4

75Float f=-21364750f Math.round(f)=21364748

76.flat f=42.0f  int i=42  i==f   true

77.instanceof 比较的必须是同一hierarchy 的引用和类,否则编译不过

78Boolean b=new Boolean(true);     b=true

       Boolean b=new Boolean(“true”);   b=true

       Boolean b=new Boolean(false);    b=false

       Boolean b=new Boolean(“false”);   b=false

       Boolean b=new Boolean(“asdf”);   b=false

       Boolean b=new Boolean(asdf);      compiler error

       Boolean b=new Boolean(TrUe);     compiler error

79.        long x=32;

x=x>>37; x=0

x=x>>69  x=1   只有位数大于64的时候才取module

80Float a=Integer.MIN_VALUE

       Float b=Integer.MAX_VALUE

       Math.round(a)=-21364748

       Math.ceil(a)=2.1364748E9

       Math.floor(a)=2.1364748E9

 




相关文章

相关软件