aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes www.jiris.com exam blunder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "www.jiris.com exam blunder" Watch "www.jiris.com exam blunder" New topic
Author

www.jiris.com exam blunder

Sreeraj G Harilal
Ranch Hand

Joined: Apr 19, 2006
Posts: 310
The ServletContext object are accessible from which of the following objects?
Please select three correct answers.
A : HttpServlet
B : GenericServlet
C : HttpSession
D : ServletConfig
E : ServletResponse


I choose B,C,D but the result says A,C,D.

What's your opinion?


SCJP 5.0<br />SCWCD 1.4<br />Preparing for <b>SCEA</b>.<br /><b>"I prefer an interesting vice to a virtue that bores."</b>
Sayak Banerjee
Ranch Hand

Joined: Nov 28, 2006
Posts: 292
There are 4 correct answers:-
A,B,C,D

E is incorrect


Turn on, tune in, drop out.
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

Answers are

A : HttpServlet
B : GenericServlet
C : HttpSession
D : ServletConfig


Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
Sreeraj G Harilal
Ranch Hand

Joined: Apr 19, 2006
Posts: 310
HttpServlet class does not have any method like getServletContext()

getServletContext() is the method of GenericServlet class, base class of HttpServlet.

Then how the option A is correct?
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

See the question carefully. It is about runtime behavior. At runtime, you can use both servlet class objects to access ServletContext.
[ December 09, 2006: Message edited by: Prabhu venkatachalam ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: www.jiris.com exam blunder
 
Similar Threads
I have 3 doubts question? can help me?
Questions MQ Solution Designer.
Need help with Project Euler algorithm
SAMPLE QUESTIONS- Part B
mock exam question