What is threds in java?

Threads is a part of a program .which has separate execution part.
SUN has provided API to simplify the threads programming.
When you run the above program ,then JVM will do the following things:-------------
  •    JVM will create a thread group with the name main.
  •  JVM will create a thread  with the name main.
  •  JVM  adds main thread to main thread Group.


Inside the main thread the following task will happened:-----------------
a)    Main  thread takes the number of command line argument.
b)    Based on command line argument String array will be constructed.
c)    Main method will be called by passing String array as an argument with the class name