What is the return type of the main method?

What is the return type of the main method?


What is the return type of the main method?


View Answers

April 10, 2013 at 6:33 PM


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.


Related Tutorials/Questions & Answers:
What is the return type of the main method?
What is the return type of execute mehtod in jdbc - Java Beginners
What it will return ..... ?
methods type - Java Beginners
java method return type : - Java Beginners
What is the main feature of Hibernate3?
What is the arguement of main method?
What are weak methods?
What is mime type in HTML
What is mime type in HTML
The ActionForm and what are important methods in ActionForm.
what is class methods in objective c
what is class methods in objective c
What modifiers are allowed for methods in an Interface?
What if the main() method is declared as private?
What are the methods in Object? - Java Beginners
Can we replace main() with static block or with other static methods?
main() method
Can I have multiple main() methods in the same class?
What type of inheritance that php supports?
how to return to main menu after adding all the info. - Java Beginners
What are the main disadvantages of Java Server Faces 2.0?
What are the most common methods of Hibernate configuration?
What is the first argument of the String array in main() method?
What type of programming language is Java?
What are the main components of Database management systems software.
what type of computer memory is used for temporary storage
What's the proper way to test a class with private methods using JUnit?
What is Public static void main
What is the main advantage of using the hibernate than using the SQL
main method
What type of headers have to be added in the mail function to attach a file?
Return keyword
JAVA what is different between static block and public static void main(String a[]) method
main method
Java error missing return statement
Methods of HttpServlet
main method
what is the need of... - Java Beginners
factory methods in java?
Convert an Integer type object to a String object
Overriding methods
Java Methods Problem - Java Beginners
Java Methods Problem - Java Beginners
main method
Main function.. - Java Beginners
public static void main