What is the result? ()
A. The program prints “lava”.
B. The program prints “java”.
C. An error at line 7 causes compilation to fail.
D. Complication succeeds but the program throws an exception.
您可能感兴趣的试卷
你可能感兴趣的试题
}
What is the result?()
A. Compilation succeeds and 1 is printed.
B. Compilation succeeds and 2 is printed.
C. An error at line 8 causes compilation to fail.
D. An error at line 14 causes compilation to fail.
A. */*
B. /*.do
C. myServlet
D. /Myservlet
E. /MyServlet/*
F. MyServlet/*.isp
A. PUT
B. GET
C. INFO
D. POST
E. HEAD
F. TRACE
A. response.get writer ()
B. response.get Output Stream ()
C. response.getOutput Writer()
D. response.get Writer ().get Output Stream ()
E. response.get Writer (Writer.OUTPUT_BINARY)
Which additions needs to be made to the Iterate Handler class for it to properly perform as the tag handler for the loop tag.?()
A.A
B.B
C.C
D.D
Given
1. public class Foo {
2. public static void main (String [] args) }
3. try { return;}
4. finally { Syste.out.printIn (“Finally”);}
5. }
6. }
What is the result()?
A. The program runs and prints nothing.
B. The program runs and prints “Finally”.
C. The code comiles. But an exception is thrown at runtime.
D. The code will not compile because the catch block is missing.
Given:
1. public interface Foo {
2. int k = 4:
3. }
Which three are equivalent to line 2?()
A. final int k = 4:
B. public int k = 4:
C. static int k = 4:
D. private int k = 4:
E. abstract int k = 4:
F. volatile int k = 4:
G. transient int k = 4:
H. protected int k = 4:
Which command line invocation will produce the output?()
A. java Test 2222
B. java Test 1234
C. java Test 4242
D. java Test 4321
A. 0…32767
B. 0…65535
C. –256…255
D. 32768…32767
E. Range is platform dependent.
Given:
Integer i = new Integer (42);
Long l = new Long (42);
Double d = new Double (42.0);
Which two expression evaluate to true?()
A. (i = = l)
B. (i = = d)
C. (d = = l)
D. (i.equals(d))
E. (i.equals(i))
F. (i.equals(42))
最新试题
Which two are true()
Assume session is an HttpSession, and is not referenced anywhere else in ServletA. Which two changes, taken together, ensure that value is equal to “Hello” on line 23? ()
Which two classes or interfaces provide a getSession method?()
When using Form Based Authentication, which pair of fields must be used in the login form?()
Which two authentication mechanisms provide weaker protection than other mechanisms?()
Which the three are true about servlet filters?()
For a given product instance, which three jsp:setProperty attributes must be used to initialized its properties form the HTML form? ()
Assume the tag handler for a st:simpletag extends SimpleTagSupport. In what way can scriptlet code be used in the body of st:simple?()
The tag handler for n:recurse extends SimpleTagSupport.Assuming an n:recurse tag can either contain an empty body or another n:recurse tag, which strategy allows the tag handler for n:recurse to output the nesting depth of the deepest n:recurse tag?()
Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()