题目内容

In Java, the beginning of a comment is marked with:在Java中,注释的开头标记为:

A. //
B. ""
C. ;
D.

查看答案
更多问题

A Java program must have at least one of these:一个Java程序必须至少具有以下之一:

A. Class definition 类定义
B. Variable 变量
Comment 注释
D. System.out.println(); statement(语句)

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 操作符

答案查题题库