File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Last days of preparation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Last days of preparation" Watch "Last days of preparation" New topic

Last days of preparation

Anand Wadhwani
Ranch Hand

Joined: Mar 21, 2005
Posts: 151
On last days of preparation, in mock exams I am doing wrong many questions coming from DTDs (web.xml and *.tld), and APIs.

Questions like...

Do I know servletcontext can be taken from not only servlet/config but also from session?

Do I know I can not specify <description> element inside security-constraint???

Do I know what all places i can specify <display-name> element???

Do I know <distributable>true</distributable> is invalid, you just need to mention <distributable/> !!!

I am literally worrying a lot and wondering how do I remember/learn/mugup so much in my mind!!!

Tuesday is my exam! Any tip for above kind of questions please?

SCWCD 1.4<br />---------------------<br />Ability is what you're capable of. <br />Motivation determines what you do. <br />Attitude determines how well you do it.<br />---------------------
chowdary Thammineedi
Ranch Hand

Joined: Aug 16, 2004
Posts: 126
Hello Anand

I don't think even SUN would expect you to mug up such trivias. Obviously, they are all over the mock exams. From my experience I can say that, they expect you to know the CORE concepts of the servlet, JSP and JSTL API and how to program in conformance to it when you are woken up at 3 AM.
The DD, as much as it is important to pass this exam, the exam itself MAY not test you on the descriptor elements of various tags.

DO NOT forget you resource-ref and env-entry tags. Design Patterns are not as EASY as most of the BOOKS and MOCKS have it.

Go through your coffee crams once again. (Reason in the right answers and reason out the wrong ones). You'll be thankful you did that.

Go CRACK it man!
Sanjay pts
Ranch Hand

Joined: Nov 07, 2000
Posts: 357

Im sure you will pass with flying color as i read your so many post.
Best of Luck


Eat JAVA, Drink JAVA, Sleep Java
Anand Wadhwani
Ranch Hand

Joined: Mar 21, 2005
Posts: 151
Thanks much for moral support!!!

Sanjay, I read yours posts too. You guys are awesom!

I am keeping fingers crossed, tomorrrow is a working day for me.. so today is last day of preparation... tomorrow evening I have the exam. I am still so poor in API and DD elements. Oh god please help me and bless me with my memory and easy questions

Thanks you guys again.
Anand Wadhwani
Ranch Hand

Joined: Mar 21, 2005
Posts: 151
How the hell would I know that getRealPath does not throw IllegalArgumentException... see the question below:

Which statements are correct?

1) Only ServletContext interface has method getRealPath
2) Answer 1 is incorrect because also HttpServletRequest has getRealPath method
3) Method getRealPath throws an IllegalArgumentException if it can't convert the argument to a local filesystem path
4) Method getPathInfo never returns null

And adding to that, answer is 2), not 1) because even deprecated method is valued!
Anand Wadhwani
Ranch Hand

Joined: Mar 21, 2005
Posts: 151

Which statements are correct about character enconding methods? (Very difficult question for me)

1) ServletRequest has setCharacterEncoding method
2) ServletRequest has getCharacterEncoding method
3) ServletResponse has getCharacterEncoding method
4) ServletResponse has setCharacterEncoding method

Guess what's the answer... all 4 are correct!
I agree. Here's the link:
subject: Last days of preparation
It's not a secret anymore!