Why is it possible to create threads without importing the java.lang.Thread class?
sun par
Ranch Hand
Joined: Oct 03, 2002
Posts: 257
posted
0
it is because the java.lang package is imported by default in any java program
Sunita<br />SCJP 1.4
Shishio San
Ranch Hand
Joined: Aug 29, 2002
Posts: 223
posted
0
7.5.3 Automatic Imports Each compilation unit automatically imports all of the public type names declared in the predefined package java.lang, as if the declaration: import java.lang.*; appeared at the beginning of each compilation unit, immediately following any package statement.
Whatever doesn't kill us ...<br />Is probably circling back for another try.<br />SCJP 1.4