|
|
|
|
![]() ![]() |
Mar 19 2005, 06:37 AM
Post
#1
|
|
|
Premium Member Group: Members Posts: 352 Joined: 2-March 05 From: Australia Member No.: 2,859 |
Which of the following implicit objects is not available to a JSP page by default?
A. application B. session C. exception D. config public class TestServlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) { private HttpSession session = req.getSession(); private ServletContext ctx = getServletContext(); } } Which of the variables used in the above servlet reference objects that are thread safe? A. req B. res C. session D. ctx |
|
|
|
Mar 19 2005, 06:45 AM
Post
#2
|
|
|
Member [ Level 1 ] Group: Members Posts: 46 Joined: 7-March 05 From: Lahore, Pakistan Member No.: 2,943 |
answer is A and D ....
i am a little confused becoz worked in J2EE a long time before, so dats why i am replying so to indulge in discussion with you and in dat way i will remember J2EE......i will make my answer confirm too.... |
|
|
|
May 6 2005, 09:55 PM
Post
#3
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 5 Joined: 6-May 05 Member No.: 4,799 |
Hi, only "exception" object is not avaible by default. All others are avaible.
I am not good at multi-threading so i can not answer to your second question |
|
|
|
May 26 2005, 07:01 AM
Post
#4
|
|
|
Newbie [ Level 1 ] ![]() Group: Validating Posts: 1 Joined: 26-May 05 Member No.: 5,449 |
C. The "exception" object is available only in an exception page, one with "error = true" attribute in <@page>
A, B, C are thread safe because are specific to each user. D is shared for all the users. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 1st December 2008 - 11:57 PM |