Hi,
Object class is the member of java.lang package which is implictly imported in every source file.
consider the following code:
This code compiles and runs fine.
I want to know that if Object class is already present in the current scope how are we able to redeclare it.
Also JLS states that :
The extends clause must not appear in the definition of the class Object, because it is the primordial class and has no direct superclass.
Then how are we able to extend the
thread class in the above mentioned code?
Thanx
Sandy
Regards<br />Sandy<br />[SCJP 5.0 - 75%]<br />[SCWCD 1.4 - 85%]<br />------------------<br />Tiger, Tiger burning bright,<br />Like a geek who works all night,<br />What new-fangled bit or byte,<br />Could ease the hacker's weary plight?