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

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

Which two CANNOT directly cause a thread to stop executing? ()  

  • A、 Existing from a synchronized block.
  • B、 Calling the wait method on an object.
  • C、 Calling notify method on an object.
  • D、 Calling read method on an InputStream object.
  • E、 Calling the SetPriority method on a Thread object.

参考答案

更多 “Which two CANNOT directly cause a thread to stop executing? ()  A、 Existing from a synchronized block.B、 Calling the wait method on an object.C、 Calling notify method on an object.D、 Calling read method on an InputStream object.E、 Calling the SetPriority method on a Thread object.” 相关考题
考题 表格包型布局有哪些约束类型?()A、“gridwidth”,“gridheight”:分别表示这个组件在宽度和高度上分别占用了几个单元格B、“anchor”:表示当面版大于表格时,如何放置整个表格C、“weightx”,“weighty”确定面版大小改变时,各个单元格分配多余空间的相对权种D、“gridx”,“gridy”:指定组件所在的单元格位置E、“inCell”:表示组件是否放在单元格中

考题 public class Test {  public enum Dogs {collie, harrier, shepherd};  public static void main(String [] args) {  Dogs myDog = Dogs.shepherd;  switch (myDog) {  case collie:  System.out.print(”collie “);  case default:  System.out.print(”retriever “); case harrier:  System.out.print(”harrier “);  }  }  }  What is the result?() A、 harrierB、 shepherdC、 retrieverD、 Compilation fails.E、 retriever harrierF、 An exception is thrown at runtime.

考题 public class Employee{       private String name;  public Employee(String name){           this.name = name;      }  public String getName(){         return name;      } }  public class Manager extends Employee{       private String department;  public Manager(String name,String department){          this.department = department;          super(name);  System.out.println(getName());      }  }  执行语句new Manager(“smith”,”SALES”)后程序的输出是哪项?() A、 smithB、 nullC、 SALESD、 编译错误

考题 Which statement is true if the do Start Tag method returns EVAL_BODY_BUFFERED?()A、 The tag handler must extend body Tag.B、 The do After Body method is NOT called.C、 The set Body Content method is called.D、 It is never legal to return EVAL_BODY_BUFFERED from do Start Tag.

考题 Integer i = new Integer (42);   Long 1 = new Long (42);  Double d = new Double (42.0); Which two expressions evaluate to True? ()A、 (i ==1)B、 (i == d)C、 (d == 1)D、 (i.equals (d))E、 (d.equals (i))F、 (i.equals (42))

考题 //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.

考题 java中 String str = "hello world"下列语句错误的是()。A、str+=’ a’B、int strlen = str.lengthC、str=100D、str=str+100

考题 下列关于线程调度的叙述中,错误的是()。A、调用线程的sleep()方法,可以使比当前线程优先级低的线程获得运行机会B、调用线程的yeild()方法,只会使与当前线程相同优先级的线程获得运行机会C、具有相同优先级的多个线程的调度一定是分时的D、分时调度模型是让所有线程轮流获得CPU使用权

考题 String foo = “blue”;  Boolean[]bar = new Boolean [1];  if (bar[0])  {  foo = “green”;  }   What is the result? () A、 Foo has the value of “”B、 Foo has the value of null.C、 Foo has the value of “blue”D、 Foo has the value of “green”E、 An exception is thrown.F、 The code will not compile.