Tony Xu

Greenhorn
+ Follow
since Sep 27, 2001
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 Tony Xu

Thank you, Dave,
Yes, I got it in mail and sent it back. I passed SCJP2 on Oct. 8 last year, and probably I got the mail two weeks later and sent it back quickly. So, it is definitely more than two months already. Should I wait more or contact them, and how?
Thanks again.
18 years ago
Could anybody give me the contact information of Sun? I have passed SCJP2 for three month, but did not get the logo yet. Can anybody give the email or the website address or 1800 telephone number? Thank you very much.
18 years ago
I sent back the agreement of the certification Logo three weeks ago, but did not get any response yet. I want put the logo onto my resume. Can't wait anymore. How long did you guys wait for the logo?
Thanks.
18 years ago

HTH,
- Manish
[This message has been edited by Manish Hatwalne (edited November 01, 2001).][/b]
</BLOCKQUOTE>
Thank you, Manish.
It's not the exect what I want. I need the part of (a%b + "/" + b) is smaller than the part of (int)a/b. Could you do that?
Thanks again.
[This message has been edited by Tony Xu (edited November 01, 2001).]
18 years ago
Hi, guys, I have a number format problem, could anybody help me out here?
Say 11 devided by 7, what we get is 1 plus (4/7). I want show the answer to the screen like 1 4/7, in which 4/7 is little smaller than 1. How can I do that?
Thanks a lot.
18 years ago
Process p = Runtime.getRuntime().exec(command);
here command is a String which I get from command line when I run the program as Java myProg args[0] args[1], then tons of errors:
java.io.IOException: CreateProcess: help error=0
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:66)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:551)
at java.lang.Runtime.exec(Runtime.java:418)
at java.lang.Runtime.exec(Runtime.java:361)
at java.lang.Runtime.exec(Runtime.java:325)
at sihai.myProg.main(myProg.java:18)
Exception in thread "main"
can anybody help?
18 years ago
I am now filling out the sun form. I wanna know how it will look like so that I can know what I shall fill it out.
I will have my Ph.D. degree soon. My question is whether I shall use Ph.D. as my job title. I don't know whether this job title will be on the logo.
Thanks in advance.

[This message has been edited by Tony Xu (edited October 22, 2001).]
18 years ago
I have kind similiar experience as yours. I submitted my exam, and a problem raised. After some time, My result was print out, but to a wrong paper. I didn't get an offical results yet.
BTW, anybody could tell me what kind of paper the result would be print on? Is it just a blank white paper? My result was print on to the test center itself business paper. Is is any stamp on the result report?
18 years ago
Thank you guys. some details.
probably 5 questions on IO. Need be familiar with the different constructors --- take what as argument, and how to chain them.
As far as AWT, not much, maybe 3, at most 4. very easy stuff about Layout managers.
some questions about immutable string and Integer, but not that difficult.
Maybe it is real exam, I spend 90 minutes to finish all questions and went over once. I usually need 60 minutes to do the mocks, like Green's. Another reason maybe is it's easier to answer on paper.
Be careful with every question, spacially for compilation error questions. I almost missed one. Go over and check if you have time, I usually don't check with mocks.
18 years ago
88%, this morning(10-08-2001).
Thanks to this great java website. Thanks to the helpful ranches here. This is a really great website, at least, for SCJP preparation.
Most questions are basic. Most questions are not too tricky. Pay more attention to the basic concepts!! Don't be fooled by some mock exams with question like this "what is the value of Math.abs(Float.MIN_VALUE)". Of course, I am not saying not to do mock exams. Actually it's important to do some good mock exams. RHE is a good guide book. I basically followed this book, plus lots of mini programs.
Any question about the exam is welcome. Of course no actual exam question.
18 years ago
I'm a little confused by some answers from mock exams. Want help.
My understanding is that the following are valid.
(1)try {//block}; catch(Exception e){//block};
(2)try {//block}; catch(Exception e){//block}; finally {//block};
(3)try {//block}; finally{//block};
(4)in all 1 to 3, can replace catch block with a series catches in the a specific order (more general) is fine;
(5)no try block then no catch block;
(6)no try block then no finally block.
Am I right? Please clarify and add.
Did anybody meet a question like this.
/////////////////////////////////
public class MyClass implements Runnable{
public void run(){
int i = 10 ////mark
System.out.println("i = "+i);
}
}
/////////////////////////////////
does this code compile?
Personally, I think it would compile if there was a semicolon at the marked line, which is the only problem.
In the real exam, will be there any question like this? say a mis-matched ( or {, or semicolon problem? If yes, then I guess I have to pay some attention to the format in every question.
Thank you.
Nain, I didn't realize we used the same MAX value. Even though, I think the value of -2 is negative definitly.
Where can I find the errata for all mock exams? I saw in some posts here, somebody said "ok, I put it errata" or something like this. Where is it?
18 years ago
Nain, thank you, I cannot agree with you though. You cannot take only one example to prove it right, while I can give you one example to prove it wrong. Here it is. Correct me if I am wrong.
int a1 = Integer.MAX;
int b1 = a1 << 1;
System.out.println("a1 is " + a1);
System.out.println("b1 is " + b1);
//////////////////////output
a1 is 2147483647
b1 is -2
18 years ago
Valiveru Question 1 says both >> and << are signed shift operators. I doubt it. I think only >> is. Please clarify.
By the way, where can I find the colletion of errata for all mock exams in this forum or somewhere else?
Thank you.
18 years ago