Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Sandeep Desai

Greenhorn
+ Follow
since Jun 14, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sandeep Desai

See my SCWCD notes at

http://www.geocities.com/sbdesai/sandeep/index.html
I passed the SCWCD 1.4 exam with 82%
This is the link for my


SCWCD Notes


You can use these notes for revising before the exam
I have formatted the notes so that they print nicely
Also make sure that your deployment descriptor (web.xml) has the web-app tag
defined as below

<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
Also make sure that your deployment descriptor (web.xml) has the web-app tag
defined as below

<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
I installed Tomcat 5.5.9
Where does the System.out.println go?

I did not see any catalina.out file created
I did not see any of the output in the files generated in the logs directory
15 years ago
I passed the SCJP 1.4 with 91%
I was scoring only 75% on most of the mock exams
I used the Whizlabs SCJP software which I recommend strongly
Also see my SCJP Notes
15 years ago
public class Test {
public void a(Object o) { System.out.println("object"); }
public void a(String s) { System.out.println("string"); }

public static void main(String[] args) {
new Test().a(null);
}
}

Why does the above code compile and produce the output of string?

Thanks,
Sandeep