Thread is the path of execution of a program..Types of
threads are Single-threaded and Multi-threaded...This is
mainly differentiated on the basis of synchronisation..A
synchronised thread means a single thread executed only
once at a time..Multithread means threads are executed
1. User threads: Which are created by the user program
itself. The example is the Main thread etc...
2. Daemon Threads: These threads are generated by the JVM
itself. They are service provider threads which run in the
background and are not used to run the application code.
The example is the Garbage Collection thread.
I declared main() method as private. But it still running
and displaying the output. Please Answer it .
Code Snippet as Below:
private static void main(String args)
int high = Integer.MAX_VALUE;
int overflow = high + 1;
int low = Integer.MIN_VALUE;
int underflow = low - 1;
System.out.println(high + "\n" +overflow +"\n"+