单项选择题


After execution. What are the values for I and j?()

A. i = 6 and j = 5
B. i = 5 and j = 5
C. i = 6 and j = 4
D. i = 5 and j = 6
E. i = 6 and j = 6


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题

When is the Float object. Created in line 3. eligible for garbage collection?()

A. just after line 5
B. just after line 6
C. just after line 7 (That is. As the method returns)
D. Never in this method

2.单项选择题Which is the valid identifier?()

A. false
B. default
C. _object
D. a-class

3.多项选择题Which the two choices are equivalent?()

A. 3 / 2
B. 3 < 2
C. 3 * 4
D. 3 << 2
E. 3 * 22
F. 3 <<<2

4.单项选择题


Which statement is true?()

A. The MyCircle class is full encapsulated.
B. The diameter of a given MyCircle is guaranteed to be twice its radius.
C. Lines 6 and 7 should be in a synchronized block to ensure encapsulation.
D. The radius of a MyCircle object can be set without affecting its diameter.

6.单项选择题Which statement is true if the do Start Tag method returns EVAL_BODY_BUFFERED?()

A. The tag handler must extend body Tag.
B. The do After Body method is NOT called.
C. The set Body Content method is called.
D. It is never legal to return EVAL_BODY_BUFFERED from do Start Tag.

7.单项选择题


What is the result?()

A. The code will not compile.
B. The output is Caught Exception
C. The output is Caught IO Exception
D. The program executes normally without printing a message.

8.单项选择题

What is the result()?

A. Compilation will succeed.
B. Compilation will fail at line 5.
C. Compilation will fail at line 6.
D. Compilation will fail at line 14.
E. Compilation will fail at line 17.

9.单项选择题


What is the result?()

A. The code compiles and “s=” is printed.
B. The code compiles and “s=null” is printed.
C. The code does not compile because Strings is not initialized.
D. The code does not compile because because Strings cannot be referneed.
E. The code comiles.butt a NullPointerException is thrown when toString is called.

10.多项选择题Which two are valid declarations of char?()

A. Char ch = “a”;
B. char ch = “”;
C. char ch = “café”;
D. char ch = “ucafe”;
E. char ch = “ucafe’;
F. char ch = “u10100’;
G. char ch = (char) true;

最新试题

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?()  

题型:单项选择题

Which path, relative to a web application’s root, identifies the web application’s deployment descriptor?()

题型:单项选择题

For a given product instance, which three jsp:setProperty attributes must be used to initialized its properties form the HTML form? ()

题型:多项选择题

Given that session is a valid HttpSession object:  Int max = session.getAttribute(“MyReallyLongName”);  Which is true?()  

题型:单项选择题

Given a web application in which the request parameter product ID contains a product identifier.Which two EL expressions evaluate the value of the product ID?()

题型:多项选择题

Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()

题型:单项选择题

Which the three EL expressions, inserted at line 15, are valid and evaluate to "3"? ()

题型:多项选择题

Which two are true?()

题型:多项选择题

Which statement, at line 16, retrieves an InputStream for the file /WEBINF/ nyresrc.bin()?

题型:单项选择题

Which code snippet, inserted at line 8, causes the value Company to be output?()

题型:单项选择题