This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Questions about some answers in the simulator

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Creator of Enthuware JWS+ V6
Posts: 3321
298
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi German,

Please QuoteYourSources

Regards,
Frits
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've answered same as your verifications: 1: B and 2: C
 
The knights of nee want a shrubbery. And a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!