第二章
End-of-line comments that should be ignored by the compiler are denoted using ( )
答案:Two forward slashes ( // ).
Which of the following is not a valid Java identifier? ( )
答案:my Value
Which of the following cannot cause a syntax error to be reported by the Java compiler? ( )
答案:An extra blank line.
Which of the following does not contain a syntax error? ( )
答案:System.out.println( "Hello world!" );
Which command compiles the Java source code file Welcome.java? ( )
答案:javac Welcome.java
Which command executes the Java class file Welcome.class? ( )
答案:java Welcome
Which is the output of the following statements?( )
答案:Hello World
Which statement prints the floating-point value 123.456 right justified with a field width of 10? ( )
答案:System.out.printf("%10.3f", 123.456);
What is the size in bits of an int? ( )
答案:32
Which of the following is the escape character? ( )
答案:

温馨提示支付 ¥3.00 元后可查看付费内容,请先翻页预览!
点赞(0) dxwkbang
返回
顶部