首页->JAVA程序设计
下列各方法中不被建议用于线程同步过程的是( )。
答:
resume()
更多JAVA程序设计试题
- 1请阅读下面的程序,程序的运行结果是()。class Person {String name;int age;public Person() {}public Person(String n, int a) {name = n;age = a;}public void show() {System.out.print(name + "---" + age +"");}}public class Test {public static void main(String[] args) {Person p1 = new Person();p1.show();Person p2 = new Person("周星驰", 27);p2.show();}}
- 2下面选项中,哪个是短路与运算符()
- 3阅读下列代码public class Example {public static void main(String[] args) {int[] srcArray = { 11, 12, 13, 14 };int[] destArray = { 21, 22, 23, 24 };System.arraycopy(srcArray, 1, destArray, 2, 2);for (int i = 0; i < destArray.length; i++) {System.out.print(destArray[i] + " ");}}}下列选项中,程序的运行结果是?
- 4假设主类包名为rose.flower;,这个程序存储在d:\chengxu\rose\flower目录结构中下,运行程序时,应按哪个格式来运行?
- 5关于continue语句的使用范围,下列说法正确的是
- 6下列异常声明中,正确的是()