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 Last minute Questions 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 "Last minute Questions" Watch "Last minute Questions" New topic
Author

Last minute Questions

Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
Gang,

I am taking the exam tommorow (wish me good luck) and I just completed the HFSJ mock exam (scored 74% in it). I do not agree with some answers provided in the hfsj mock exam. So, I would like to get your thoughts on this.

Here we go...


Question 67
----------------

You are developing a webap for an organization that needs to display the results of database searches to several different types of clients, including PDAs and kiosks. The application will have to examine the request to determine which type of client has initiated it and then dispatch the request to the proper component.


HFSJ says that the answer is Model-View-Controller pattern. I would have agreed with it ( as the question clearly mentions that the application will have more than 1 type of views), but have a look at this section examine the request to determine which type of client has initiated it and then dispatch the request to the proper component.. Wouldn't you agree that the 'Intercepting Filter' fits the description correctly?

my filter would check the http headers and determine the type of client and dispatch it to the appropriate controller.

your thoughts on this..

[ December 03, 2005: Message edited by: Mike Corleone ]
[ December 03, 2005: Message edited by: Mike Corleone ]

MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
I dont agree with this one either:

Question 17
----------------
Which statements about making a servlet's doGet() method synchronized are true? (Choose all that apply)

a) It will make access to ServletRequest attributes thread safe.
b) ...
c) ...

My understanding is that request attributes and local variables are thread-safe (irrespective of whether u use the singlethreaded model / make the doGet() method synchrnoized or not.)

The answer is "Option A is invalid because it doesnt make request attributes any more thread safe than they already are"

My initial reaction after reading the answer is "what the ?"


[ December 03, 2005: Message edited by: Mike Corleone ]
[ December 03, 2005: Message edited by: Mike Corleone ]
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
I passed the exam today with 91%

Thanks for your help guys
sunil chow
Ranch Hand

Joined: Mar 25, 2003
Posts: 64
Hi Mike,

Congrats thats a great score
Any tips for preparation
It will be great if you can share your exam experiences

Regards
-------
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Congrats



Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
CONGRATS



Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
Hi Mike,

Congrats thats a great score [jumpingjoy]
Any tips for preparation
It will be great if you can share your exam experiences

exam was pretty straight forward - i finished the exam in 30 min or so (and didnt bother to review my answers - maybe thats where i lost my marks).

Regarding preperation

Read HFSJ thrice ( Just a casual read for the first time, Started preparing notes when I read it the second time, and the third time was just a revision to make sure that I've covered everything in my study notes)

HFSJ should be more than enough to score 80% in the exam. I was very much disappointed on seeing the questions (they were too easy, not tricky whatsoever)... There were questions like... Where would you put the jar files (WEB-INF/lib folder)?, where can you find the web.xml? (WEB-INF/web.xml), what HTTP method is called when you click on a hyperlink (GET)... It was pretty easy.

I got full marks in EL/Design Patterns/JSTL/Webapp deployment and few ohter sections.

I remembered JSTL attributes as:

<jsp:useBean id="x" type="y" class="z" scope="session">

ITCS..

and similary for jsp:setProperty it can be PNV or PNP
<jsp:setProperty param="xx" name="x" value="xx"> or
<jsp:setProperty param="xx" name="x" property="xx">

This approach worked for me

I also printed out the web.xml diagram supplied by Darya Akhbari (search this forum - you should find it) and stuck it on my cubicle. I used to stare at it every-day and made sure that I know them all byheart.

And there are were 3 quesions on web.xml on the exam - so if you want to score good marks, then you got to know the deployment descriptor by heart.

Finally I took the HSFJ mock exam and I scored 74% in it.

I think HFSJ covers most the topics except the following

(a) Dynamic Attributes (You better learn this - there was an question in the exam about this)
(b) the "beanName" attribute in jsp:useBean tag
(c) c ut, c:redirect and few other tags

Its always a good idea to go through the JSP and servlet spec

All the best my fellow ranchers, I am gonna take a break for few days and then start preparing for the SCJD and the SCBCD exam in 2006

Good luck!
Mike Corleone
[ December 05, 2005: Message edited by: Mike Corleone ]
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8801
    
    5
Hey Mike,

Congrats on a great score!

Just so everyone knows, Bryan wrote up a tutorial on dynamic attributes here:

http://www.coderanch.com/t/170429/java-Web-Component-SCWCD/certification/Tutorial-Dynamic-Attributes

hth,

Bert


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Patrick Williams
Ranch Hand

Joined: Apr 03, 2005
Posts: 213
The diagram that Mike speaks of is here:

http://www.coderanch.com/t/170501/java-Web-Component-SCWCD/certification/web-xml-template-very-important

Congratulations Mike!


Patrick<br /> <br />SCJP/SCWCD/SCBCD/SCDJWS/SCEA<br /> <br />Currently working on:<br />SCJP 6
sunil chow
Ranch Hand

Joined: Mar 25, 2003
Posts: 64
Hi Mike thanks for sharing the details and giving few tips
and enjoy ur holidays
Thanks Patrick for giving the url to the resource

Regards
-------
Even if you're on the right track, you'll get run over
if you just sit there
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Last minute Questions
 
Similar Threads
another design pattern ambiguity
Multiple Choice Questions
Request Attributes Thread Safe?
Exact Front Controller In Realtime
HFSJ Final Mock exam - 5 doubts