题目内容

To compile a program named First, use the following command:要编译名为First的程序,使用一下命令:

A. java First.java
B. javac First
C. javac First.java
D. compile First.javac

查看答案
更多问题

If the following Java statements are executed, what will be displayed?如果执行以下Java语句,以下哪个内容将会打印出?System.out.println("The top three winners are\n");System.out.print("Jody, the Giant\n");System.out.print("Buffy, the Barbarian");System.out.println("Adelle, the Alligator");

A. The top three winners areJody, the GiantBuffy, the BarbarianAdelle, the Alligator
B. The top three winners areJody, the Giant\nBuffy, the BarbarianAdelle, the Alligator
C. The top three winners are Jody, the Giant\nBuffy, the BarbarianAdelle, and the Albino
D. The top three winners areJody, the GiantBuffy, the BarbarianAdelle, the Alligator

This is a value that is written into the code of a program.这是一个写入程序代码中的值。

A. Literal 常量
B. assignment statement 赋值语句
C. variable 变量
D. operator 操作符

When the + operator is used with strings, it is known as the:当+运算符与字符串一起使用时,称为:

Assignment operator 赋值运算符
B. String concatenation operator 字符连接运算符
C. Addition operator 加法
D. Combined assignment operator 复合运算符

What would be printed out as a result of the following code?以下代码将打印出什么内容?System.out.println("The quick brown fox" +"jumped over the \n""slow moving hen.");

A. The quick brown fox jumped over the \nslow moving hen.
B. The quick brown fox jumped over theslow moving hen.
C. The quick brown foxjumped over theslow moving hen.
D. Nothing. This is an error. 什么也没有.这是错误的。

答案查题题库