Thanks Jesper de Jong...
Sorry for late reply...
You don't need to decompile rt.jar
i know but when i download
java decompiler & try to de-compile various files which allow to open in it.
I found .jar also decompile so i decompile rt.jar.
It's in the file src.zip in your JDK installation directory.
I have 2 jdk
1. jdk1.6.0_33
2. jdk1.7.0_02
By Winmerge version 2.12.4.0 i compare Integer.java files from both jdk source...
1 question.
What is use by adding huge code in between /* */? It just comment or really workable code?
example i see something like this.
2 question.
In
In jdk1.7.0_02
&
I not understand properly about both...though by adding if-else for 'len' it more accurate working,i think so...
but that 'reurn....' statement i not understand...little bit clue for it?
3 question.
Why remove code which appeare in older version
or it change more easy code as
4 question
What is benefit by changing
to
5 question.
Why change int low = -128; as static final in jdk1.7.0_02?
6 question.
what is difference between return statements?
1. return String.valueOf(value);
2. return toString(value);
7 question
Is () is very useful? Few times it seen that just add it in same line
eg 1.
just added ()
eg 2.
just added ()
Even i download source code from openjdk. But i not found internal class [I;
As
[I;" is the internal class name for int[] (int array).
Sorry for lots of question is not relate with subject name..but it come infront of me by just started by 1st post..so i ask here...
I know lot to study for understand jdk properly but it just start for me...so i take Integer.java.