Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question for the mock-up test.

 
JoungHan Kim
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regarding the following question, I can not understand why the answer is C.

Please give a explaination about it.

Thank you in advance.

And Have a nice day!



Question Bank ID : 52 Choose the 1 correct answer
<web-app>
<servlet>
.....
</servlet>
<listener>
<listener-class>com.javaranch.LogListener</listener-class>
</listener>
</web-app>

The above entry in the Deployment Descriptor(DD) will result in which of the following?

a. Provide a Log Servlet for the entire application.
b. Log all session information as they occur.
c. The webapp will not be loaded due to a parse exception of the DD.
d. Create a listener as defined by the com.javaranch.LogListener class
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The javaranch exam is for old version od SCWCD exam. As per old specification the order of components are importantant. In your case the <listener> enrty must be before <servlet> entry.

As per Servlet 2.4, there is no such restrictions.

Thanks
 
JoungHan Kim
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your kind answer!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic