Professional Documents
Culture Documents
Java1 5
Java1 5
when you call the start() on a thread object. start() method adds the thread to a thread group as per the
initializing parameter. And here the start() calls a native method start0() after that. To find out further, I
started looking at the Thread's native implementation.Starting with \JDK 1.5
Source\j2se\src\share\native\java\lang\Thread.c, I found the start0() method is mapped to (void
*)&JVM_StartThread
Generics: provides compile-time (static) type safety for collections and eliminates the
need for most typecasts (type conversion).
Metadata: also called annotations; allows language constructs such as classes and
methods to be tagged with additional data, which can then be processed by metadata-
aware utilities.
Enhanced for each loop:for loop syntax is extended with special syntax for iterating over each
member of either an array or any iterable