method
第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题:
指出下面哪一项是在抽象类中声明一个抽象方法。( )
A.public abstract method();
B.public abstract void method();
C.public void abstract Method();
D.public void method(){abstract;}
第3题:
在Java语言中,包pack1的类class1中有成员方法: protected void method_1(){„}, private void method_2() {„}, public void method_3() {„} 和 void method_4() {„}, 在包pack2中的类class2不是class1的子类,你在class2中可以调用方法()。
第4题:
为AB类的一个无形式参数无返回值的方法method书写方法头,使得使用类名AB作为前缀就可以调用它,该方法头的形式为()
第5题:
How do you define the authentication method that will be used with AAA?()
第6题:
Under which circumstances will a thread stop?()
第7题:
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?()
第8题:
Which two can directly cause a thread to stop executing?()
第9题:
Click the Exhibit button and examine the diagram. You are running a database that takes advantage of features provided by Connection Manager, heterogeneous services, and external procedures. The diagram depicts the components used for the naming method you just configured. Which naming method are you using?()
第10题:
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.
第11题:
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.
第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题:
类Test定义如下,将下列哪个方法插入③行处是不合法的( )?
① public class Test{
② public float Method(float a,float B) { }
③ ______
④ }
A.public float Method(float a,float b,float C) { }
B.public float Method(float c,float d){ }
C.public int Method(int a,int B) { }private float Method(int a,int b,int C) { }
D.private float Method(int a,int b,int C) { }
第14题:
第15题:
Which two CANNOT directly cause a thread to stop executing?()
第16题:
M类中有一个没有形式参数,且没有返回值的方法method,若要使得用M.method()就可以调用该方法,则method方法的方法头的正确形式应该是()。
第17题:
包pack1的类class1中有成员方法: protected void method_1(){„}, private void method_2() {„}, public void method_3() {„} 和 void method_4() {„}, 在包pack2中的类class2是class1的子类,你在class2中可以调用方法()。
第18题:
Which of the following statements about variables and scope are true?()
第19题:
Which methods from the String and StringBuffer classes modify the object on which they are called?()
第20题:
Which two CANNOT directly cause a thread to stop executing? ()
第21题:
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?()
第22题:
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.
第23题:
With the method aaa command
With the method command
With a method list
With a method statement
第24题:
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.