Java认证模考试题(二)

文章作者 100test 发表时间 2007:03:14 17:03:14
来源 100Test.Com百考试题网


Question: 6


Which are the valid identifiers in Java?


A. fieldname

B. super

C. 3number

D. #number

E. $number


Explanation:

Valid identifiers in Java can start with a letter, underscore (_), or dollar sign ($), but not with digits or other signs. And identifiers can not be keywords.


 

Correct Answer: A,E 6 of 60

Question: 7


Which are valid Java keywords?


A. const

B. NULL

C. false

D. this

E. native

Explanation:


All the keywords in Java are lowercase. goto and const are keywords that are not used in Java programming language.

Correct Answer: A,C,D,E 7 of 60

Question: 8

WWW.CN-MPA.COM 2005-8-16 3:14:42
Which are valid integral expressions in Java?


A. 22

B. 0x22

C. 022

D. 22H

Explanation:


In Java integral has three forms: decimal, octal and hexadecimal. Octal values start with a zero and hexadecimal values start with 0x.

Correct Answer: A,B,C 8 of 60

Question: 9


Which one of the following ranges of short is correct?


 



相关文章


从Java应用程序动态生成PDF文件
Java认证模考试题(三)
Java程序设计知识与技能(八)
基础:用于数据的XML:对XQuery的前瞻
Java认证模考试题(二)
scjp考题中的种种陷阱
Sun认证Java程序员5.0升级版本
Java源代码案例--骑士巡游问题
JAVA基础:JAVA程序中实现FTP的功能
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛