A. public double methoda ():
B. static void methoda(double d1) {}
C. public native double methoda ():
D. abstract public foid methoda ():
E. protected void methoda (double d1) {}
您可能感兴趣的试卷
你可能感兴趣的试题
What is the result?()
A. The code compiles and “s=” is printed.
B. The code compiles and “s=” + s);
C. The code does not compile because Strings is not initialized.
D. The code does not compile because Strings cannot be referneed.
E. The code comiles, but a NullPointer Exception is thrown when toString is called.
A. run
B. import
C. default
D. implement
What is the result?()
A. foo has the value of “”
B. foo hast he falue 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.
What the output?()
What is the result?()
A. The program runs and prints nothing.
B. The program runs and prints “Equal”.
C. An error at line 5 cause compilation to fail.
D. The program runs but aborts with an exception.
What is the result?()
A. The program runs and prints “0”
B. The program runs and prints “1”
C. The program runs but aborts with an exception.
D. An error “possible undefined variable” at line 4 causes compilation to fail.
E. An error “possible undefined variable” at line 9 cause compilation to fail.
What is the result()?
A. 2
B. 4
C. 8
D. 16
E. The code will not compile.
A. public interface Person {} Public class Employee extends Person {}
B. public interface Shape {} public interface Rectangle extends Shape {}
C. public interface Color {} public class Shape { private Color color; }
D. public class Species {} public class Animal { private Species species; }
E. interface Component {} Class Container implements Component {private Component [] children;
Which two overload the setVar method()
A.A
B.B
C.C
D.D
E.E
A. An anonymous class can be declared as static.
B. A static inner class cannot be a static member of the outer class.
C. A static inner class does not require an instance of the enclosing class.
D. Instance member of a static inner class can be referenced using the class name of the staticinner class.
最新试题
A developer is designing a web application which extensively uses EJBs and JMS. The developer finds that there is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further, because of the complexity, there are numerous errors in the code. Which J2EE design pattern provides a solution for this problem?()
Which two produce the output "one, two and three"?()
A JSP page, current.jsp, is created to display the current weather report. The weather report is contained in a weather.html page that is rewritten every five minutes. Which line, appearing in current.jsp, ensures that the most recent version of weather.html is included whenever current.jsp is referenced?()
Which the three interfaces need to be declared in the web application deployment descriptor? ()
Which two authentication mechanisms provide weaker protection than other mechanisms?()
Which three can be placed at line 23 to retrieve an existing HttpSession object?()
Which the three EL expressions, inserted at line 15, are valid and evaluate to "3"? ()
Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()
Which the JSTL code snippet can be used to import content from another web resource?()
Which two are true?()