• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Last minute Questions

 
Richard Green
Ranch Hand
Posts: 536
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Richard Green
Ranch Hand
Posts: 536
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 536
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I passed the exam today with 91%

Thanks for your help guys
 
sunil chow
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 951
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats

 
Vishnu Prakash
Ranch Hand
Posts: 1026
 
Richard Green
Ranch Hand
Posts: 536
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8898
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Patrick Williams
Ranch Hand
Posts: 213
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
sunil chow
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic