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

hi,

What is the return type of the main method?

thanks

Advertisement
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










Related Tutorials/Questions & Answers:
Advertisements