Public static void main ( String args[] )
public static void main
Public static void main(String args[]) is the main method.it is the starting point of the program. In which main method you can change only string args[].
public
public static void main
Public static void main(String args[]) is the main method.it is the starting point of the program. In which main method you can change only string args[].
· Static
· Void
· Main
· String
public
The main method of
the program is public because the public can access the out site of class JVM, call the method outside
of class so therefore the main method of the program is public.
Public means method can access
the out site of the class.
If we did not use the public in
the main method the main method cannot access the outside of class.
Static
Static
The main method of a class is static .static
means there is no need of creating an object for calling the main method.jvm
can call the method without the help of an object. It
means the main method not to belong to a particular object.
Void
The main method used the void .void means the main method
return no values.
Main
The main is the name of the
method.
String
The string is a parameter that passing from the main
method.
Its letter is capital we can
not change it.it is a predefined class.
when we declare any class its
first letter is capital.
Args[]
Args[] is a string type object.
Args[] is the variable name of
the string array.
It can change it.
- What is
Java.Why Use Java? lecture............. 1.
- Feature of Java programing
lecture................ 2.
- WHAT IS
JVM(JAVA VIRTUAL MACHIN................3)
- Data types in java...........................4
- The
basic structure of the java program.5
- Public static void main
(String args [] ) in the java program.. 6
Comments
Post a Comment