This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes ServletContext  access doubt 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 "ServletContext  access doubt" Watch "ServletContext  access doubt" New topic

ServletContext access doubt

Brijesh shah
Ranch Hand

Joined: Mar 16, 2007
Posts: 90
41.The ServletContext object are accessible from which of the following objects?
Please select three correct answers.

The above Question i got from moxk exam in which they have given correct answer as A , C and D... But i think answer should be C, D and E...So please explain me if i'm wrong.

Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

You'll find the answer yourself in the API. Look at these classes carefully, and remember which methods they contain.

[My Blog]
All roads lead to JavaRanch
Swathi Sri

Joined: Jan 18, 2007
Posts: 22

Based on following API info, Answer should be A,B,C and D.
There are 4 correct options instead of 3.
all have getServletContext() method, which proves ServletContext is accessible.

does not have getServletContext() method..

Please correct me if I am wrong.

I agree. Here's the link:
subject: ServletContext access doubt
Similar Threads
For JSP scopes of request and page, what type of object is used to store the attribut
ServeltContext object
ServletContext object
Behaviour of distributed web application. exam blunder