What is the return type of the main method?

Ads
Ads

What is the return type of the main method?


Java Coder
What is the return type of the main method?
1 Answer(s)      4 years and 11 months ago
Posted in : Java Beginners
Ads

hi,

What is the return type of the main method?

thanks

View Answers

April 10, 2013 at 6:33 PM


Hi,

In the java programming the Main() method doesn't return anything hence declared void. In Java, you need to have a method named main in at least one class. The following is what must appear in a real Java program.

For more visit http://www.roseindia.net/java/java-methods/java-method-synchronized.shtml

Hope this reference will very helpful for java beginners.

Thanks


Ads









Related Tutorials/Questions & Answers:
Advertisements