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

Ads









Related Tutorials/Questions & Answers:
What is the return type of the main method?
What it will return ..... ?
Advertisements
What is the main feature of Hibernate3?
What is the arguement of main method?
What are weak methods?
What modifiers are allowed for methods in an Interface?
what is class methods in objective c
what is class methods in objective c
What is mime type in HTML
What is mime type in HTML
Can we replace main() with static block or with other static methods?
main() method
What if the main() method is declared as private?
Can I have multiple main() methods in the same class?
What are the most common methods of Hibernate configuration?
What are the main disadvantages of Java Server Faces 2.0?
What type of programming language is Java?
What is the first argument of the String array in main() method?
What's the proper way to test a class with private methods using JUnit?
methods
methods
methods
what type of computer memory is used for temporary storage
What is Public static void main
What is the main advantage of using the hibernate than using the SQL
Return keyword
JAVA what is different between static block and public static void main(String a[]) method
what is the need of... - Java Beginners
factory methods in java?
main method
Overriding methods

Ads