Java练习题1(有答案).docxVIP

  • 337
  • 0
  • 约5.59万字
  • 约 57页
  • 2017-08-12 发布于河南
  • 举报
Java练习题1(有答案)

第 1题 ________ is an object-oriented programming language. 1、 Java 2、 C++ 3、 C 4、 Ada 5、 Pascal 答案 1 2 第 2题 ________ is Architecture-Neutral. 1、 Java 2、 C++ 3、 C 4、 Ada 5、 Pascal 答案 1 第 3题 ________ is a technical definition of the language that includes the syntax and semantics of the Java programming language. 1、 Java language specification 2、 Java API 3、 Java JDK 4、 Java IDE 答案 1 第 4题 ________ consists of a set of separate programs for developing and testing Java programs, each of which is invoked from a command line. 1、 Java language specification 2、 Java API 3、 Java JDK 4、 Java IDE 答案 3 第 5题 ________ provides an integrated development environment (IDE) for rapidly developing Java programs. Editing, compiling, building, debugging, and online help are integrated in one graphical user interface. 1、 Java language specification 2、 Java API 3、 Java JDK 4、 Java IDE 答案 4 第 6题 The main method header is written as: 1、 public static void main(string[] args) 2、 public static void Main(String[] args) 3、 public static void main(String[] args) 4、 public static main(String[] args) 5、 public void main(String[] args) 答案 3 第 7题 Which of the following statements is correct? 1、 Every line in a program must end with a semicolon. 2、 Every statement in a program must end with a semicolon. 3、 Every comment line must end with a semicolon; 4、 Every method must end with a semicolon; 5、 Every class must end with a semicolon; 答案 2 第 8题 Which of the following statements is correct to display Welcome to Java on the console? 1、 System.out.println( Welcome to Java ); 2、 System.out.println(Welcome to Java); 3、 System.println( Welcome to Java ); 4、 System.out.print( Welcome to Java ); 5、 System.out.print(Welcome to Java); 答案 2 5 第 9题 Which JDK command is correct to run a Java application in ByteCode.class? 1、 java ByteCode 2、 java ByteCode.class3、 javac ByteCode.java4、 javac ByteC

文档评论(0)

1亿VIP精品文档

相关文档