Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions? | Software Development
 

Understanding public static void main function

The public static void main function is important function in Java programming language.

Understanding public static void main function

                         

The public static void main function is important function in Java programming language. In this section we will learn about main function.

The main method is the first method, which the Java Virtual Machine executes. When you execute a class with the Java interpreter, the runtime system starts by calling the class's main() method. The main() method then calls all the other methods required to run your application. It can be said that the main method is the entry point in the Java program and java program can't run without this method.

The signature of main() method looks like this:

public static void main(String args[])

The method signature for the main() method contains three modifiers:

  • public indicates that the main() method can be called by any object.
  • static indicates that the main() method is a class method.
  • void indicates that the main() method has no return value.

Read more about public static void main function at http://www.roseindia.net/java/master-java/underStandingHello.shtml

 

                         

» View all related tutorials
Related Tags: c function fun io this ai unc learn ear e il main section in m out func s is ll

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

2 comments so far (
post your own) View All Comments Latest 10 Comments:

very good knowledge about java nd their function so i suggest all the student who's need java language so u can use this site with full of conifedince..


thankyou.

Posted by chandan on Tuesday, 04.7.09 @ 21:16pm | #86620

I am a student. in want to make a project by using UML with java plateform. Please tell me the project topic on which i can work. not much difficult not much easy.

Posted by MINDHACKES on Wednesday, 08.13.08 @ 14:36pm | #72629

 
Tell A Friend
Your Friend Name

 

 
Recently Viewed
Software Solutions
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.