JAVA题库:格林模拟试题三(上)(1)

来源:java认证发布时间:2012-11-12 12:47:52java认证视频

 

questions


question 1)

which of the following are legal statements?

1) float f=1/3;
2) int i=1/3;
3) float f=1.01;
4) double d=999d;


question 2)

which of the following are java keywords?

1) null
2) new
3) instanceof
4) wend


question 3)

which of the following are valid statements?

1) system.out.println(1+1);
2) int i=2+'2';
3) string s="on"+'one';
4) byte b=255;


question 4)

which of the following statements are true?

1) the garbage collection algorithm in java is vendor implemented
2) the size of primitives is platform dependent
3) the default type for a numerical literal with decimal component is a float.
4) you can modify the value in an instance of the integer class with the setvalue method


question 5)

which of the following are true statements?

1) i/o in java can only be performed using the listener classes
2) the randomaccessfile class allows you to move directly to any point a file.
3) the creation of a named instance of the file class creates a matching file in the underlying operating system only when the close method is called.
4) the characteristics of an instance of the file class such as the directory separator, depend on the current underlying operating system

视频学习

我考网版权与免责声明

① 凡本网注明稿件来源为"原创"的所有文字、图片和音视频稿件,版权均属本网所有。任何媒体、网站或个人转载、链接转贴或以其他方式复制发表时必须注明"稿件来源:我考网",违者本网将依法追究责任;

② 本网部分稿件来源于网络,任何单位或个人认为我考网发布的内容可能涉嫌侵犯其合法权益,应该及时向我考网书面反馈,并提供身份证明、权属证明及详细侵权情况证明,我考网在收到上述法律文件后,将会尽快移除被控侵权内容。

最近更新

社区交流

考试问答