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

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


您可能感兴趣的试卷

你可能感兴趣的试题

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

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

2.单项选择题


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.

4.单项选择题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.

5.单项选择题


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.

6.单项选择题

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.

7.单项选择题


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.

8.多项选择题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;

9.多项选择题


Which three logical expressions evaluate to true?()

A. (a = = c)
B. (d = = c)
C. (b = = d)
D. (a = = b)
E. (b = = c)
F. (d == 10.0)

10.单项选择题


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.

最新试题

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

题型:单项选择题

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

题型:单项选择题

A web application uses the HttpSession mechanism to determine if a user is “logged in”. When a user supplies a valid user name and password, an HttpSession is created for that user. The user has access to the application for only 15 minutes after logging in. The code must determine how long the user has been logged in, and if this time is greater than 15 minutes, must destroy the HttpSession. Which method in HttpSession is used to accomplish this?()

题型:单项选择题

Which the two are valid and equivalent?()

题型:多项选择题

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

题型:单项选择题

A developer for the Company.com web site has been told that users may turn off cookie support in their browsers. What must the developer do to ensure that these customers can still use the web application?()  

题型:单项选择题

What code, inserted at line 21, is called prior to a session being migrated to a different JVM assuming the web application containing MyExample is deployed in a container which supports distributed applications?()

题型:单项选择题

Which two produce the output "one, two and three"?()

题型:多项选择题

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

题型:多项选择题