It's not a secret anymore!*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFSJ Final Mock Exam doubts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HFSJ Final Mock Exam doubts" Watch "HFSJ Final Mock Exam doubts" New topic
Author

HFSJ Final Mock Exam doubts

Bhavna Jharbade
Ranch Hand

Joined: Sep 08, 2005
Posts: 69
Hi all,

Please clarify my following doubts frm the mentioned exam:

Q19. In option D how come "name" variable is stored as request parameter?

Q22. Why option D is not a correct answer?

Q47. wht does option C means:"A session may become invalid as a result of a specific call by a servlet."

Q55. How option B is correct?

Q63. Why line 4 will not generate error?

I hope thats not too much for you all....
If anyone( probability is very low) does not have HFSJ..i will post the specified questions.

Thanks in advance.


SCJP1.4 (86%)
Connie Ky Leung
Ranch Hand

Joined: Jan 29, 2006
Posts: 42
Originally posted by Bhavna Jharbade:
Hi all,

Please clarify my following doubts frm the mentioned exam:


Q47. wht does option C means:"A session may become invalid as a result of a specific call by a servlet."
One can invoke request.getSession().invalidate() and request.getSession().setMaxInactiveInterval(0) to destroy a session. Assume request is of type HttpServletRequest.

I hope thats not too much for you all....
If anyone( probability is very low) does not have HFSJ..i will post the specified questions.

Thanks in advance.


SCJP 1.4 - 91%, SCWCD - 97%, SCJP 5.0 - 83%, SCJP 6.0, OCEJWCD - 80%
Ganesh Chinni
Greenhorn

Joined: Dec 30, 2005
Posts: 24
HI,

Q19. When you call request.getParameterNames() method, you will get Enumeration as a return value and the Enumeration will store all the parameter names(not the parameter values) that were sent as part of the request.

so after calling request.getParameterNames(),you will iterate through the Enumeration to get all the parameter names one by one and once you get the parameter names then you can call the request.getParameter(String parameterName) method to get the actual value of the parameter.


Q 47. Option D means you can call invalidate() method from a servlet to invalidate the session.
Bhavna Jharbade
Ranch Hand

Joined: Sep 08, 2005
Posts: 69
Hello friends,

Thanks Connie & Ganesh for the clarifications.

Please help me for Ques 22,55& 63 also.

Thank you.
Connie Ky Leung
Ranch Hand

Joined: Jan 29, 2006
Posts: 42
For Q22, option D is not JSP code , it is code written in Java language
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HFSJ Final Mock Exam doubts