This is my first ever post in this forum so first I want to say Hi to all.
Now I have been using
JAVA Documentation from a long time.
And because it was released from sun too, I did not expect any flaw in it.
But now I don't trust it at all.
Reason is
For instance when I see System class Documentation in jdk-1_5_0-doc\docs\api\java\lang\System.html
It shows that System is a final class and it is also a direst subclass of Object.
like the below->>>>>>>
public final class System
extends Object But when I see System.java file in jdk1.5.0_14\src\java\lang\System.java
It shows something like this
package java.lang;
import java.io.*;
import java.util.Properties;
import java.util.PropertyPermission;
import java.util.StringTokenizer;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.security.AllPermission;
import java.nio.channels.Channel;
import java.nio.channels.spi.SelectorProvider;
import sun.net.InetAddressCachePolicy;
import sun.nio.ch.Interruptible;
import sun.reflect.Reflection;
import sun.security.util.SecurityConstants;
import sun.reflect.annotation.AnnotationType;
public final class System {
//Specific code
} My Question is "Why this Difference Exists ?"
And what is the purpose of Documentation then If it does not provide the correct n Exact information?
I am preparing for
scjp 310-055
I have been using java from last 3 years.
[Removed
non-words from subject line]
[ April 21, 2008: Message edited by: Ben Souther ]