File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Hi please Help Me!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Hi please Help Me!!" Watch "Hi please Help Me!!" New topic
Author

Hi please Help Me!!

Amos Tham
Greenhorn

Joined: Aug 18, 2003
Posts: 3
Hi,
i am very new in java therefore i have a lot of questions to ask
what does public static void(String args[]) for?
Grishma Dube
Ranch Hand

Joined: Jul 01, 2003
Posts: 275
Hi,
public static void main(String args[])
It is a main method, which is a starting point of our program. public is a access specifier, which specifies that main method is accessible from any class. static specifies that we are not required to create instance of a class to invoke the main method. void is a return type, which indicates that main method does not return any value and it takes array of String as a parameter.
Hope this helps
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, Amos Tham!
Following is a list of free on-line tutorials and books that you might find useful on your path to learning Java.
  • Sun's Java Tutorial
  • Introduction to Computer Science using Java by Bradley Kjell
  • Introduction to Programming Using Java by David J. Eck
  • Dick Baldwin's Java Programming Tutorials
  • Interactive Programming In Java by Lynn Andrea Stein
  • Bruce Eckel's Thinking In Java


  • [How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
    Dirk Schreckmann
    Sheriff

    Joined: Dec 10, 2001
    Posts: 7023
    Note that Sun's Java Tutorial does a decent job of describing the main method as part of their Getting Started Trail.
    The main Method

    The entry point of every Java application is its main method. When you run an application with the Java interpreter, you specify the name of the class that you want to run. The interpreter invokes the main method defined within that class. The main method controls the flow of the program, allocates whatever resources are needed, and runs any other methods that provide the functionality for the application. The main Method tells you more.
    Amos Tham
    Greenhorn

    Joined: Aug 18, 2003
    Posts: 3
    Thanks Guys really a great help. really appreciated !!
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Hi please Help Me!!