考题
在Java语言中,包pack1的类class1中有成员方法:protectedvoidmethod_1(){…},privatevoidmethod_2(){…},publicvoidmethod_3(){…}和voidmethod_4(){…},在包pack2中的类class2不是class1的子类,你在class2中可以调用方法()。
A.method_1B.method_2C.method_3D.method_4
考题
包pack1的类class1中有成员方法:protectedvoidmethod_1(){…},privatevoidmethod_2(){…},publicvoidmethod_3(){…}和voidmethod_4(){…},在包pack2中的类class2是class1的子类,你在class2中可以调用方法()。
A.method_1B.method_2C.method_3D.method_4
考题
阅读下列代码段,选出该代码段的正确文件名( )。 class A { void method1() { System.out.println("method1 in class A"); } } public class B { void method2() { System.out.println("method2 in class B"); } public static void main(String args[]) { System.out.println("main in class B"); } }A.A.javaB.A.classC.B.classD.B.java
考题
给出下面的接口: interface A{ int method1(int i); int method2(int j); } 下面那个类实现了这个接口,并且不是抽象的?()
A.class B implements A{ int method1(){} int method2(){} }B.class B { int method1(int i){} int method2(int j){} }C.class B implements A{ int method1(int i){} int method2(int j){} }D.class B extends A{ int method1(int i){} int method2(int j){} }
考题
以下代码有问题,下列说法正确的是()。代码如下:public A{public void method(){} (1)public string method(){} (2)public string method(int a){} (3)}
A、(1)和(2)删掉一个,错误解决B、(3)删掉,错误解决C、没问题
考题
有一个接口定义如下: interface A { int method1(int i); int method2(int j);}那么下面各项中实现了该接口并且不是抽象类的是( )。A.class B implements A { intmethod1(){} intmethod2(){} }B.calss B { int method1(int i){) int method2(int j){} }C.class B implementsA { int method1(int i){} int method2(int j){} }D.class B extendsA { int method1(int i){} int method2(int j){} }
考题
给出下列的不完整的方法,则下列的哪个声明可以被加入①行完成此方法的声明? ① ② { success = connect( ); ③ if (success = = - 1 ) { ④ throw new TimedoutException( ) ⑤ } ⑥ }A.public void method( )B.public void method( ) throws ExceptionC.public void method( ) throw TimedoutExceptionD.public throw TimedOutException void method( )
考题
给出下列的不完整的方法,则哪个声明可以被加入①行完成此方法的声明?( ) ① ② {success=connect(); ③ if(success==-1){ ④ throw new TimedOutException(); ⑤ } ⑥ }A.public void method()B.public void method()throws ExceptionC.public void method()throw TimedOutExceptionD.public throw TimedOutException void method()
考题
有一个接口定义如下,下列选项中实现了该接口并且不是抽象的是( )。interface A{ int method1 (int i); int method2 (int j);}A.class B implements A{ int method1() { } int method2() { }}B.class B{int method1(int i) { }int method2(int j) { }}C.class B implements A{ int methodl(int i) { } int method2(intj) { }}D.class B extends A{int method1(int i) { }int method2(int j) { }}
考题
有一个接口定义如下,下列选项中实现了该接口并且不是抽象的是 interface A { int method1 (int i); int method2 (int j); }A.class B implements A { int method1(){} int method2(){} }B.class B { int method1(int i){} int method2(int j){} }C.class B implements A { int method1(int 1){} int method2(int j){} }D.class B extends A { int method1(int i){} int method2(int j){} }
考题
( )is a project management technique for measuring project performance progress.It has the ability to combine measurements of the project management triangle: scope,time and costs.A.Critica1 path method(CPM)B.Earned value management(CEV)C.Net present value method(NPVM)D.Expert judgment method(EJM)
考题
以下程序的输出结果为:public class test {public static void main(String args[]) {int s=0;for (int k=0;ks+=method(2,k)-1;System.out.println(s);}public static int method(int n,int m) {if (m==0)return 1;elsereturn n*method(n,m-1、;}}A. 2048B. 1024C. 2036D.2000
考题
class A { protected int method1(int a, int b) { return 0; } } Which two are valid in a class that extends class A?() A、 public int method1(int a, int b) { return 0; }B、 private int method1(int a, int b) { return 0; }C、 private int method1(int a, long b) { return 0; }D、 public short method1(int a, int b) { return 0: }E、 static protected int method1(int a, int b) { return 0; }
考题
包pack1的类c_ass1中有成员方法:protected void method_1(){…},private void method_2(){…},public void method_3(){…}和 void method_4(){…},在包pack2中的类class2是class1的子类,它在class2中可以调用方法()。 A、method_1B、method_2C、method_3D、method_4
考题
在Java语言中,包pack1的类class1中有成员方法: protected void method_1(){„}, private void method_2() {„}, public void method_3() {„} 和 void method_4() {„}, 在包pack2中的类class2不是class1的子类,你在class2中可以调用方法()。 A、method_1B、method_2C、method_3D、method_4
考题
1. public class a { 2. public void method1() { 3. try { 4. B b=new b(); 5. b.method2(); 6. // more code here 7. } catch (TestException te) { 8. throw new RuntimeException(te); 9. } 10. } 11. } 1. public class b { 2. public void method2() throws TestException { 3. // more code here 4. } 5. } 1. public class TestException extends Exception { 2. } Given: 31. public void method() { 32. A a=new a(); 33. a.method1(); 34. } Which is true if a TestException is thrown on line 3 of class b?()A、 Line 33 must be called within a try block.B、 The exception thrown by method1 in class a is not required to be caught.C、 The method declared on line 31 must be declared to throw a RuntimeException.D、 On line 5 of class a, the call to method2 of class b does not need to be placed in a try/catch block.
考题
当采用PEAP或EAP-TLS的无线认证方式时,我们需要全局下使用命令()来使能,并根据需要加载根证书和服务器证书。A、dot1x authentication-method eapB、dot1x authentication-method chapC、dot1x authentication-method papD、dot1x authentication-method peap
考题
How do you define the authentication method that will be used with AAA?()A、With the method aaa commandB、With the method commandC、With a method listD、With a method statement
考题
A customer wants to configure two resource groups and create the following shared filesystem structure:Resource GroupFilsystem Mount Point Rg1/app1 Rg2/app1/data Which of the following will ensure the proper mount order for these filesystems?()A、Set filesystem recovery method to parallelB、Set filesystem recovery method to sequentialC、Set filesystem recovery method to parallel and configure a parent/child relationship for the resourcegroupsD、Set filesystem recovery method to sequential and configure a parent/child relationship for the resourcegroups
考题
Given that t1 is a reference to a live thread, which is true?()A、The Thread.sleep() method can take t1 as an argument.B、The Object.notify() method can take t1 as an argument.C、The Thread.yield() method can take t1 as an argument.D、The Thread.setPriority() method can take t1 as an argument.E、The Object.notify() method arbitrarily chooses which thread to notify.
考题
单选题A customer wants to configure two resource groups and create the following shared filesystem structure:Resource GroupFilsystem Mount Point Rg1/app1 Rg2/app1/data Which of the following will ensure the proper mount order for these filesystems?()A
Set filesystem recovery method to parallelB
Set filesystem recovery method to sequentialC
Set filesystem recovery method to parallel and configure a parent/child relationship for the resourcegroupsD
Set filesystem recovery method to sequential and configure a parent/child relationship for the resourcegroups
考题
单选题Given that t1 is a reference to a live thread, which is true?()A
The Thread.sleep() method can take t1 as an argument.B
The Object.notify() method can take t1 as an argument.C
The Thread.yield() method can take t1 as an argument.D
The Thread.setPriority() method can take t1 as an argument.E
The Object.notify() method arbitrarily chooses which thread to notify.
考题
单选题You are creating a Windows application for graphical image processing by using the .NET Framework 3.5. You create an image processing function and a delegate.You plan to invoke the image processing function by using the delegate.You need to ensure that the calling thread meets the following requirements: (1)It is not blocked when the delegate is running (2)It is notified when the delegate is complete What should you do?()A
Call the Invoke method of the delegate.B
Call the BeginInvoke and EndInvoke methods of the delegate in the calling thread.C
Call the BeginInvoke method by specifying a callback method to be executed when the delegate is complete.Call the EndInvoke method in the callback method.D
Call the BeginInvoke method by specifying a callback method to be executed when the delegate is complete.Call the EndInvoke method of the delegate in the calling thread.
考题
单选题在Java语言中,包pack1的类class1中有成员方法: protected void method_1(){„}, private void method_2() {„}, public void method_3() {„} 和 void method_4() {„}, 在包pack2中的类class2不是class1的子类,你在class2中可以调用方法()。A
method_1B
method_2C
method_3D
method_4
考题
多选题class A { protected int method1(int a, int b) { return 0; } } Which two are valid in a class that extends class A?()Apublic int method1(int a, int b) { return 0; }Bprivate int method1(int a, int b) { return 0; }Cprivate int method1(int a, long b) { return 0; }Dpublic short method1(int a, int b) { return 0: }Estatic protected int method1(int a, int b) { return 0; }
考题
单选题1. public class a { 2. public void method1() { 3. try { 4. B b=new b(); 5. b.method2(); 6. // more code here 7. } catch (TestException te) { 8. throw new RuntimeException(te); 9. } 10. } 11. } 1. public class b { 2. public void method2() throws TestException { 3. // more code here 4. } 5. } 1. public class TestException extends Exception { 2. } Given: 31. public void method() { 32. A a=new a(); 33. a.method1(); 34. } Which is true if a TestException is thrown on line 3 of class b?()A
Line 33 must be called within a try block.B
The exception thrown by method1 in class a is not required to be caught.C
The method declared on line 31 must be declared to throw a RuntimeException.D
On line 5 of class a, the call to method2 of class b does not need to be placed in a try/catch block.
考题
多选题包pack1的类class1中有成员方法: protected void method_1(){„}, private void method_2() {„}, public void method_3() {„} 和 void method_4() {„}, 在包pack2中的类class2是class1的子类,你在class2中可以调用方法()。Amethod_1Bmethod_2Cmethod_3Dmethod_4
考题
单选题How do you define the authentication method that will be used with AAA?()A
With the method aaa commandB
With the method commandC
With a method listD
With a method statement