Java   View all facts   Glossary   Help
member > class member > class method > main method
Next class methodparseInt    Upclass method    Previous class methodisDigit   

main method
subjectfact 
main methodcalls other methods to run an applicationadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:19.0
has definition A method that is initially executed in an applicationadded by: DS, comment: only one method in a class can be the main method, which is run when you specify a class to the interpreter, reference: Source 2, 2001-10-19 11:37:19.0
has main method signatureadded by: JK, source: Teach Yourself Java 2 in 21 Days, 2001-10-19 11:37:19.0
has method signature
public static void main(String[] args)
added by: JK, 2001-10-19 11:37:19.0
is the first method called when the Java interpreter executes an application    added by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:19.0
is the starting point for an applicationadded by: JK, source: Teach Yourself Java 2 in 21 Days, 2001-10-19 11:37:19.0
is part of a classadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:19.0
is similar to a main function in Cadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:19.0
is a subtopic of Methods2001-10-19 11:37:19.0
is a kind of class methodadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:19.0
must be added by: JK, 2001-10-19 11:37:19.0
must have one argument of type String[]added by: JK, 2001-10-19 11:37:19.0
class method    2001-10-19 11:36:23.0
affects the class as a whole, not a particular instance of the class    2001-10-19 11:36:23.0
can be accessed from 2001-10-19 11:36:24.0
cannot access directly any instance variable2001-10-19 11:36:24.0
cannot be overridden2001-10-19 11:36:24.0
has purpose implementing functions such as initializing a class, or operating on the complete set of instances of a class2001-10-19 11:36:24.0
is called by using the name of the class, followed by a dot, followed by the name of the method (the name of the class can be omitted when calling a class method in the current class)    2001-10-19 11:36:24.0
is marked as static    2001-10-19 11:36:24.0
operates on 0 or more class variables of its class2001-10-19 11:36:24.0
specifies the behaviour of the class2001-10-19 11:36:24.0
class membercan be used by every method of the class2001-10-19 11:36:23.0
methodbelongs to a class    2001-10-19 11:37:21.0
can access all instance variables of all objects of its class2001-10-19 11:37:21.0
can be accessed by other methods and variables in any class in the same package by default    2001-10-19 11:37:21.0
can use the super method to invoke a method declared in the superclass2001-10-19 11:37:21.0
cannot be passed as an argument to a method or constructor    2001-10-19 11:37:22.0
creates an object by instantiating a class2001-10-19 11:37:22.0
does not return a value if it has a void return type2001-10-19 11:37:22.0
has part method definition2001-10-19 11:37:22.0
has part method signature2001-10-19 11:37:22.0
has part a block of implementation code2001-10-19 11:37:22.0
implements 2001-10-19 11:37:22.0
may contain empty return statement if it has a void return type    2001-10-19 11:37:22.0
may have access modifier 2001-10-19 11:37:22.0
must contain return statement unless it has a void return type    2001-10-19 11:37:22.0
must define its parameter list2001-10-19 11:37:22.0
must define its return type2001-10-19 11:37:22.0
returns a value that is of the return type of the method or a subtype of that type    2001-10-19 11:37:22.0
should return to its caller from only one place which should be the last statement    2001-10-19 11:37:23.0
usually hides instance variables, class variables from other objects2001-10-19 11:37:23.0
access unithas access mode2001-10-19 11:35:59.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0

Next class methodparseInt    Upclass method    Previous class methodisDigit