网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

Which are not Java keywords? ()   

  • A、 TRUE
  • B、 sizeof
  • C、 const
  • D、 super
  • E、 void

参考答案

更多 “Which are not Java keywords? ()   A、 TRUEB、 sizeofC、 constD、 superE、 void” 相关考题
考题 在Java中,用 关键字定义常量。() A.defineB.fixedC.constD.final

考题 Which modifer should be applied to a declaration of a class member variable for the value of variable to remain constant after the creation of the object?() A.staticB.finalC.constD.abstract

考题 以下哪个不是Java的关键字()。 A.voidB.superC.constD.TRUE

考题 下列各选项中属于Java保留字的是( )。A.TRUEB.NULLC.FALSED.null

考题 下列各选项中不属于Java保留字的是( )。A.ifB.sizeofC.privateD.null

考题 下列不是Java语言中的保留字的是( )。A.ifB.sizeofC.privateD.null

考题 Java.lang.Thread、java.lang.Number、java.lang.Double、java.lang.Math、java.lang.Void、java.lang.Class、java.lang.ClassLoader

考题 下列属于Java关键词的是( )。A.TRUEB.gotoC.floatD.NULL

考题 下面哪个方法不是HttpServlet类:()A、protected void doGet(HttpServletRequest reg,HttpServletResponse res) throws Servlet Exception ,java.io.IOExceptionB、protected void doPost(HttpServletRequest reg,HttpServletResponse res) throws Servlet Exception,java.io.IOExceptionC、protected void doHead(HttpServletRequest reg,HttpServletResponse res) throws Servlet Exception,java.io.IOExceptionD、protected void doReceive(HttpServletRequest reg,HttpServletResponse res) throws ServletException,java.io.IOException

考题 package com.sun.sjcp; public class Commander{ public static void main(String[]args){ //more code here } } Assume that the class fileis located in /foo/com/sun/sjcp/,the current directory is/foo/,and that the classpath contains“.“(current directory). Which command line correctly runs Commander?()A、java CommanderB、java com.sim.sjcp.CommanderC、java com/sun/sjcp/CommanderD、java-cpcom.sun.sjcp CommanderE、java-cpcom/sun/sjcp Commander

考题 public class Threads2 implements Runnable {  public void nun() {  System.out.println(”run.”);  throw new RuntimeException(”Problem”);  }  public static void main(String[] args) {  Thread t = new Thread(new Threads2());  t.start();  System.out.println(”End of method.”);  }  }  Which two can be results?()A、 java.lang.RuntimeException: ProblemB、 run. java.lang.RuntimeException: ProblemC、 End of method. java.lang.RuntimeException: ProblemD、 End of method.  run.java.lang.RuntimeException: ProblemE、 run. java.lang.RuntimeException: Problem End of method.

考题 public class Alpha{  public static void main( string[] args ){  if ( args.length == 2 ) {  if ( args.[0].equalsIgnoreCase(“-b”) )  System.out.println( new Boolean( args[1] ));  }  }  }   And the code is invoked by using the command: java Alpha –b TRUE   What is the result?()  A、 trueB、 nullC、 falseD、 Compilation fails.E、 The code runs with no output.F、 An exception is thrown at runtime.

考题 public class test {  public static void main(String [] a) {  assert a.length == 1;  }  }  Which two will produce an AssertionError?()A、 java testB、 java -ea testC、 java test file1D、 java -ea test file1E、 java -ea test file1 file2F、 java -ea:test test file1

考题 下列哪项不是Java语言的关键字?()A、gotoB、sizeofC、instanceofD、volatile

考题 下列属于Java关键字的是()A、TrueB、gotoC、floatD、NULL

考题 下列函数原型中,可以作为类Base析构函数的是()A、void~BaseB、~Base()C、~Base()constD、Base()

考题 public class Foo {  static int[] a;  static { a[0]=2; }  public static void main( String[] args) {}  }  Which exception or error will be thrown when a programmer attempts to run this code?() A、 java.lang. StackOverflowErrorB、 java.lang.IllegalStateExceptionC、 java.lang.ExceptionlnlnitializerErrorD、 java.lang.ArraylndexOutOfBoundsException

考题 Which method must be defined by a class implementing the java.lang.Runnable interface? () A、 void run()B、 public void run()C、 public void start()D、 void run(int priority)E、 public void run(int priority)F、 public void start(int priority)

考题 //point X  public class foo { public static void main (String[]args) throws Exception {  java.io.printWriter out = new java.io.PrintWriter {  new java.io.outputStreamWriter (System.out), true;  out.printIn(“Hello”); }  }  }   Which statement at PointX on line 1 allows this code to compile and run?()  A、 Import java.io.*;B、 Include java.io.*;C、 Import java.io.PrintWriter;D、 Include java.io.PrintWriter;E、 No statement is needed.

考题 //point X    public class foo (   public static void main (Stringargs) throws Exception {   printWriter out = new PrintWriter (new )  java.io.outputStreamWriter (System.out), true;   out.printIn(“Hello”);    }   )   Which statement at PointX on line 1 allows this code to compile and run?()A、 Import java.io.PrintWriter;B、 Include java.io.PrintWriter;C、 Import java.io.OutputStreamWriter;D、 Include java.io.OutputStreamWriter;E、 No statement is needed.

考题 Which of these are keywords in Java?()  A、defaultB、NULLC、StringD、throwsE、long

考题 public class Test {  public static void main(String [] args) {  System.out.println(args.length  4   args[4].equals(“-d”));  }  }   If the program is invoked using the command line: java Test One Two Three –d   What is the result?()  A、 trueB、 falseC、 Compilation fails.D、 An exception is thrown at runtime.

考题 单选题Which method must be defined by a class implementing the java.lang.Runnable interface? ()A  void run()B  public void run()C  public void start()D  void run(int priority)E  public void run(int priority)F  public void start(int priority)

考题 单选题public class Test {  public static void main(String [] args) {  System.out.println(args.length  4   args[4].equals(“-d”));  }  }   If the program is invoked using the command line: java Test One Two Three –d   What is the result?()A  trueB  falseC  Compilation fails.D  An exception is thrown at runtime.

考题 多选题Which are not Java keywords? ()ATRUEBsizeofCconstDsuperEvoid

考题 单选题//point X   public class foo {  public static void main (Stringargs) throws Exception {   java.io.printWriter out = new java.io.PrintWriter {   new java.io.outputStreamWriter (System.out), true;   out.printIn(“Hello”);   }   } }   Which statement at PointX on line 1 allows this code to compile and run?()A  Import java.io.*;B  Include java.io.*;C  Import java.io.PrintWriter;D  Include java.io.PrintWriter;E  No statement is needed.

考题 单选题public class Foo {  static int[] a;  static { a[0]=2; }  public static void main( String[] args) {}  }  Which exception or error will be thrown when a programmer attempts to run this code?()A  java.lang. StackOverflowErrorB  java.lang.IllegalStateExceptionC  java.lang.ExceptionlnlnitializerErrorD  java.lang.ArraylndexOutOfBoundsException