To run our program, the main method must be identical to this signature
public static void main(String[ ] args)
- Public : anyone can see it
- Statuc : method can be run without creating an instance of the class containing the main method
- Void : method doesn’t return any value
- Main : name of the method
- Main’s parameters are is an array of strings called args
You must be logged in to post a comment.