Chris Wox

Ranch Hand
+ Follow
since May 25, 2006
Merit badge: grant badges
For More
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 Chris Wox

could someone help me out what is the MZ's 3 quizes and where is the link ?
hi,
I am very new to SCWCD and just started studying all by myself from K&b book. please forgive my dumb questions.

Could someone please explain difference between PrintWriter and PrintStream classes and can we use PrintStream class instead of PrintWriter
class , say , in the first example of k&b book as below ???

e.g
PrintWriter out = response.getWriter();
out.println ("<html>" + "<body>"+ "<h1 align=center>HF\'s Chapter1 Servlet </h1>" + "<br>" + today + "</body>" + "</html>");
Does anyone know if SUN is planning to release any new version of this exam within next 6 months ?

The current version as I know is

Sun Certified Web Component Developer for the Java 2 Platform, Enterprise Edition 1.4 (CX-310-081)

I heard from a friend that SUN will be releasing new exam soon based on the new product ( i guess Enterprise Edition (Java EE) ) .

so shouldI wait for the new exam ? or go with the above version ??

please help me make a decision as before I buy the books
thanks

[ August 03, 2006: Message edited by: Chris Wox ]

[ August 03, 2006: Message edited by: Chris Wox ]
[ August 03, 2006: Message edited by: Chris Wox ]
Hi guys

I have passed my exam accdently with 62% marks .

actually I had booked my exam 3 monts ago and I was rescheduling it every month since I didnt have confidence as I was not fully prepared .

This time I forgot to reschedule the exam 24 hours ahead so I didnt have any choice other then to take the exam . I was fully prepared to fail the exam
but I passed it . I still cant believe it.

I feel my score is not good as compare to other people marks posted here
and I am not happy about it at all.

I didnt have any prior Java experience just PL/SQL experience.

I am very interested to know other people who are getting such high marks ( (like > 85%) in the exam have some prior Java experience or not .
[ August 03, 2006: Message edited by: Chris Wox ]
17 years ago
Program 1

public class Equals{
public static void main(String[] args) {
Object n1 = new Object();
Object n2 = new Object();

System.out.println(n1.equals(n2));


}
}

result :false

Program 2
public class Equals{
public static void main(String[] args) {
Integer n1 = new Integer(47);
Integer n2 = new Integer(47);

System.out.println(n1.equals(n2));

}
}

result : true



Could someone please help me out to understand why the results are different
in two of the above programs

and also I am having difficulty understanding difference between == and equals method when comparing objects. please help me out ...
[ July 29, 2006: Message edited by: Chris Wox ]
I think Edwin answer my concern and in this sense the book I read was right.


Sorry I cant remember the name of the book as I have so many books
and it was a while ago .

thanks everyone for the help
[ July 25, 2006: Message edited by: Chris Wox ]
I read before in some book that there is no overloaded operators in Java .

now I am reading in k&b book that | is a bitwise operator and as well as
logical operator .

Could someone help me out please
wow , the best possible explanation ! thanks a lot
class Exc1 extends Exception{ }

public class Test {
static void a() {
try {
System.out.print("Try ");
}
catch(Exc1 e) {
System.out.print("Catch ");
}
finally {
System.out.println("Finally ");
}
}

I am getting compile error on the above saying:

exception exc1 is never thrown in the body of corresponding try statement


but when I change the catch to as below then I dont get compiler erorr ???
catch(Exception e) {
System.out.print("Catch ");


please help me understand this rule . thanks
public class ObjectTest2 {
String s;

public void ObjectTest2(){
s = "Constructor";
}

public void printString() {
System.out.println(s);
}

public static void main(String args[]) {
ObjectTest2 o = new ObjectTest2();
o.printString();
}
}



could someone please tell me why it is printing null in the question above ???
thanks for the reply

but now i have another question

in the code getClass().getName()

getClass() is a method in the object class which Returns the runtime class of an object

but i couldnt find anything about getName(), is it also a method in Object class ?
17 years ago
I would like to start a Java Certification Exam study group in the Toronto / GTA area .

I plan on taking the exam in 2-3 months. I am expereince programmer in other languages have been coding beginner/intermediate Java for around 4 months.

I Would like to meet once or twice a week with other students (3-4)

please email me if anyone is interested.

ps: In case if any such group already exist please let me know.
[ June 15, 2006: Message edited by: Chris Wox ]
int[] a = new int[4];

the above line is declaring and instantiating an array object .

Could someon please tell me what is the class name of the above object ?
since as i understand every object in java is an instance of the class .
17 years ago
thanks for the reply folks
17 years ago
I am trying to understand why main method must have to be public .
one reason I read is that because it is the entry point and invoked automatically from outside as a result of execution of the source file .

Now it that is the case why the class in which the main method is defined
does not have to be public ?

I am trying to simply understand the concept behind why main method must be public but the class in which main method is defined does not have to be public since it seems to me as contradicting ...

Please help me out
17 years ago