Archive for August, 2009

Cheating questions for SCWCD (1)

While preparing SCWCD, I got a list of hard questions that are easy to make mistakes.
1. Which of the following statements regarding action are correct?

  • It must have an ‘id’ attribute.
  • If ‘beanName’ attribute is present, ‘type’ must also be present.
  • It must have a ‘scope’ attribute.
  • If ‘class’ attribute is present, ‘type’ must also be present.

1,2 are correct.
Explanation:
Here are the rules:

  1. id is mandatory.
  2. scope is optional.
  3. The three attributes: class, type and beanName can occur only as one of the following four combination and at least one of these four combinations must be there in a useBaen tag:
  • a. class
  • b. type
  • c. class and type
  • d. beanName and type

Continue »

Make more video tutorials to bring more visitors

How can I get more visitors? The answer is always simple: make your website useful to more people.

I’m gonna make some tutorials for my visitors. The first one I do will be: how to make a beautiful resume using Word. (Since Latex is not as good as Word for a resume, it will not be introduced)

There is a very good tool to make screen video online, it’s ScreenToaster. The video can be submitted to Youtube online or downloaded to local machine. What I will do is to put the tutorial on youtube, but also provide download through fotfile.com. This is a terrific idea, if the tutorial is useful for a lot of people.

Review of Enthuware’s JWebPlus V5

Like Enthuware’s SCJP, JWebPlus is quite good and very helpful.(Leave your email, I can share my license with you) There are 500+ questions inside, but 200 is enough for the test. Hope this can help someone which is trying to figure out how it is.

The SCJP questions in mock exam is more difficult than the real test, but JWebPlus’s questions are much closer to the questions in real test.

Update:

I just passed SCWCD. I think I need to update this post.

This is not useful at all, so don’t buy. Just read the book HFSJ!! Read the book, and run the code in the book. (You can read my post about how to prepare SCWCD)

Update:

If you are still interested in this product, go to http://enthuware.com/web/,

Latex vs. Word for a resume or CV

Just found that Word is much better than Latex for a resume. So if you are searching for a latex resume template, switch to search “Word resume template”. There will be a lot of professional temple for you from Microsoft official site.

If you are trying to make a resume, and don’t know how to use a temple. Just google “word resume template”, and you will see how easy it is.

Three simple examples to illustrate custom tag development

There is three examples in this practice. You can check how they are exist at the same time in an application.
1. Tag File
Header.tag

< %@tag description="put the tag description here" pageEncoding="UTF-8"%>
 
< %-- The list of normal or fragment attributes can be specified here: --%>
< %@attribute name="fontColor" required="true"%>
< %@tag body-content="tagdependent" %>
 
< %-- any content can be specified here e.g.: --%>
<em><strong><font color="${fontColor}">
    <jsp:dobody />
 
</font></strong></em><br />

Continue »

Schedule a java task to run at a certain time, and wrap it as a windows service

To make a Java program that runs at certain time is not difficult, we can just use java.util.Timer and java.util.TimerTask classes, here is the code.

Continue »

Make an open source exam system

Is it a good idea to make a PHP open-source exam system? Use it to do any online mock exam, such as SCJP, SCWCD, etc. Make it user-friendly, and let users import questions by using XML, or any other stand files. We can also let user take the test without login and review the questions. Have a terrific domain name such as javascwcd.com, javascjp.com, etc. Put some Advertisement(Google Adsense) there, it should be a great idea. Because the Ads here should be certification related, users normally need those commercial products, and therefore more likely to click Ads.

Several difficult questions of SCWCD

Here are three difficult SCWCD questions from javaranch.
1. The Element in the Deployment Descriptor for a servlet initialization parameter is :

<!--ELEMENT init-param(param-name, param-value, description?)-->

This is true.

2. The statement :
The web client obtains the username and password from the user and transmits it
to the server using Base64 encoding.
Best describes which Authentication scheme?

Http Digest Authentication
Http Basic Authentication — correct
Https Client Authentication
Form Based Authentication

3. You have an Applet that needs to receive a large block of data from a
server, manipulate it on the client and return it to the server, which pattern
is best suited for this situation?

Value Objects — correct
Business Delegate
Data Access Object
Model View and Control