What is the return type of the main method?

What is the return type of the main method?

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









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
Advertisements
What it will return ..... ?
methods type - Java Beginners
java method return type : - Java Beginners
What is the main feature of Hibernate3?
What are weak methods?
What is the arguement of main method?
What is mime type in HTML
What is mime type in HTML
The ActionForm and what are important methods in ActionForm.
What modifiers are allowed for methods in an Interface?
what is class methods in objective c
what is class methods in objective c
What are the methods in Object? - Java Beginners
What if the main() method is declared as private?
Can we replace main() with static block or with other static methods?
main() method
What type of inheritance that php supports?
What are the most common methods of Hibernate configuration?
Can I have multiple main() methods in the same class?
how to return to main menu after adding all the info. - Java Beginners
What type of programming language is Java?
What are the main disadvantages of Java Server Faces 2.0?
What is the first argument of the String array in main() method?
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?
methods
methods
methods
What is Public static void main
What is the main advantage of using the hibernate than using the SQL
What type of headers have to be added in the mail function to attach a file?
main method
Return keyword
Java error missing return statement
JAVA what is different between static block and public static void main(String a[]) method
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
main method
Overriding methods
Java Methods Problem - Java Beginners
Java Methods Problem - Java Beginners
convert string type to mathod name
use of return statement
Java Methods

Ads