Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Thread constructor and that internally calls the Thread.init(). init() has the following signature.

private void init(ThreadGroup paramThreadGroup, Runnable paramRunnable, String paramString,


long paramLong);

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

Enumerations:the enum keyword creates a typesafe, ordered list of values

Autoboxing/unboxing:automatic conversions between primitive types (such as int) and primitive


wrapper classes (such as integer).

You might also like