This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Questions about some answers in the simulator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Questions about some answers in the simulator" Watch "Questions about some answers in the simulator" New topic
Author

Questions about some answers in the simulator

German Villalpando Novelo
Greenhorn

Joined: Mar 20, 2013
Posts: 1
Hello my name is Germán, and I am going to have my exam this 23 of March. I bought 2 simulator for the exam and I dont completely agree with two questions answers. Can you please help me to figure out if the answers are correct?

Question 1:

Which annotation specifies the metadata as a javax.servlet.http.HttpSessionListener?


A.
@Listener

B.
@WebListener

C.
@WebSessionListener

D.
@HttpSessionListener

In the simulator the answer is A, but checking at the API of javax.servlet.http.HttpSessionListener, http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpSessionListener.html I found the answer is the letter B WebListener


Question 2

In ServletContext.getNamedDispatcher(string arg0) arg0 is the…


A.
url of a servlet relative to the ServletRequest

B.
url of a servlet relative to the Context

C.
name of a servlet

D.
absolute url to any servlet in any Context

The answer in the simulator is "B", but reading the API about the getNamedDispatcher it seems the answer is the C "Name of the servlet"


Please can you help me to find the right answers for this 2 questions


Thanks

Best Regards
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1629
    
  23

Hi German,

Please QuoteYourSources

Regards,
Frits
jalil idrissi
Greenhorn

Joined: Feb 05, 2013
Posts: 6
I've answered same as your verifications: 1: B and 2: C

OCEJWCD 6
OCPJP 7
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Questions about some answers in the simulator
 
Similar Threads
Cleared OCEWCD6 with 92%
Whizlabs SCJP, SCWCD and SCBCD Preparation experience - not too bright
Using RequestDispatcher with <c:url> tag
Sarga Qns
Which annotation specifies the metadata as a javax.servlet.http.HttpSessionListener?