Explain about main thread in java?



Explain about main thread in java?..

Answer / Dhram Pal

The main thread is a pre-defined thread that is created by the JVM when a Java application starts. It has a priority of 5, which is the highest among user threads. The main thread's entry point is the static void main(String[] args) method in any class. This method must be present in every Java program.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What if I write static public void instead of public static void in java?

1 Answers   Winsol Solutions,


What is singleton service?

1 Answers  


How does a for loop work?

1 Answers  


What is re-factoring in software?

1 Answers  


What method is used to compare two strings ?

4 Answers  


What is bigger kb or mb?

1 Answers  


Can a constructor be protected?

1 Answers  


Is java a virus?

1 Answers  


What is the difference between Abstract Class and Interface

8 Answers   Amdocs,


How to eliminate duplicates from an array?

6 Answers   ABC, AdMod, Adobe, College School Exams Tests, Patni, Wipro,


Can you override static methods?

1 Answers  


What are wrapper classes?

11 Answers   Noah Solutions,


Categories