today i passed sjcp 1.4, the mistake i made is because of my poor English,what a pity, i cant understand the meaning of one option about assertion.
i dont know how to express my motion,i thanks all deeply and i love javaranch very very much.
That benifits me mostly here is not the answers for my questions, but the good manner in solving a question.
by reading the topics posted in saloon and studying the thiking style of my friends, i learned how to solve a problem step by step.It's the greatest treasure for me.For some instances,
topic 1.
why "abc".trim()=="abc" true but " abc ".trim()=="abc" false?
//reading the code in the trim() method of class
String topic 2.
int a=1;byte b=a; //compile err
final int a=1;byte b=a; //OK
// reading the part of JLS that talking about the constant varibles.
topic 3.
why inner class can access the private varibles of its outer class?
//use the reflection mechanism to find the answer
......
......
Now i v a habit that before i click the "add new topic " button to post a new topic for asking for help, i will ask myself "r u sure u cannt solve the problem yourself?". In fact ,there r many clew and many docs that would help me to find the solution of a problem. If i am still in doubt,i l click the button. But before that, i l try my best to solve the problem by myself.
another opinion in my study here is : One good question is more important than a good answer. 4 example,
class A{
public String toString(){return null;}
}
System.out.print(new A()); // throw a NullPointerException
before i saw the topic i never realized that invoking the print() method will occur a RuntimeError. I was surperised very much. Since that, i am more interested in the questions posted here than answers sometimes.
in my opinion,finding a solution of a problem is daily round but crashing with a good question need luck,isnt it?
I come here a month ago, knew javaranch from k&b book,and the most important aim is finding something useful here for my
scjp exam.But now i realized that what i got here is not only the exam score 98%,but good manner in my life.
i wanna say thanx again, thanx 4 u all my friends.
my next aim is passing scwcd with high scores, javaranch is my homeworld.