第1题:
有一个接口定义如下,下列选项中实现了该接口并且不是抽象的是( )。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) { }}
第2题:
包pack1的类c_ass1中有成员方法:protected void method_1(){…},private void method_2(){…},public void method_3(){…}和 void method_4(){…},在包pack2中的类class2是class1的子类,它在class2中可以调用方法()。
第3题:
Which two CANNOT directly cause a thread to stop executing?()
第4题:
Under which circumstances will a thread stop?()
第5题:
Which methods from the String and StringBuffer classes modify the object on which they are called?()
第6题:
You are developing a custom-collection class.You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement. Which criterion should the method meet?()
第7题:
Exiting from a synchronized block.
Calling the wait method on an object.
Calling the notify method on an object.
Calling the notifyAll method on an object.
Calling the setPriority method on a thread object.
第8题:
Mark the method with the keyword public.
Mark the method with the keyword protected.
Mark the method with the keyword private.
Mark the method with the keyword package.
Do not mark the method with any accessibility modifiers.
第9题:
Local variables defined inside a method are destroyed when the method is exited.
Local variables are also called automatic variables.
Variables defined outside a method are created when the object is constructed.
A method parameter variable continues to exist for as long as the object is needed in which the method is defined.
第10题:
The charAt() method of the String class.
The toUpperCase() method of the String class.
The replace() method of the String class.
The reverse() method of the StringBuffer class.
The length() method of the StringBuffer class.
第11题:
With the method aaa command
With the method command
With a method list
With a method statement
第12题:
The method must return a type of either IEnumerator or IEnumerable.
The method must return a type of IComparable.
The method must explicitly contain a collection.
The method must be the only iterator in the class.
第13题:
指出下面哪一项是在抽象类中声明一个抽象方法。( )
A.public abstract method();
B.public abstract void method();
C.public void abstract Method();
D.public void method(){abstract;}
第14题:
在Java语言中,包pack1的类class1中有成员方法: protected void method_1(){„}, private void method_2() {„}, public void method_3() {„} 和 void method_4() {„}, 在包pack2中的类class2不是class1的子类,你在class2中可以调用方法()。
第15题:
How do you define the authentication method that will be used with AAA?()
第16题:
It is desirable that a certain method within a certain class can only be accessed by classes that are defined within the same package as the class of the method. How can such restrictions be enforced?()
第17题:
Which two CANNOT directly cause a thread to stop executing? ()
第18题:
The method waitforId() in class MediaTracker is called.
The run() method that the thread is executing ends.
The call to the start() method of the Thread object returns.
The suspend() method is called on the Thread object.
The wait() method is called on the Thread object.
第19题:
Calling the yield method.
Calling the wait method on an object.
Calling the notify method on an object.
Calling the notifyAll method on an object.
Calling the start method on another Thread object.
第20题:
static void method()
public method()
final void method()
static method()
第21题:
Existing from a synchronized block.
Calling the wait method on an object.
Calling notify method on an object.
Calling read method on an InputStream object.
Calling the SetPriority method on a Thread object.
第22题:
public int method1(int a, int b) { return 0; }
private int method1(int a, int b) { return 0; }
private int method1(int a, long b) { return 0; }
public short method1(int a, int b) { return 0: }
static protected int method1(int a, int b) { return 0; }
第23题:
Host naming method.
Local naming method.
Directory naming method.
External naming method.
第24题:
Extend java.lang.Thread and override the run method.
Extend java.lang.Runnable and override the start method.
Implement java.lang.thread and implement the run method.
Implement java.lang.Runnable and implement the run method.
Implement java.lang.Thread and implement the start method.