Public static void main ( String args[] )
Public static void main ( String args[] )
<a href="https://www.teeztareen.com/2019/06/blog-post_18.html"> Public stat
ic void main ( String args[] )</a>
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
· 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.
If we did not use the public in
the main method the main method cannot access the outside.
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 .
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.
<a href="https://www.teeztareen.com/2019/06/blog-post_18.html"> Public static void main ( String args[] )</a>
- 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
<a href="https://www.teeztareen.com/2019/06/blog-post_18.html"> Public static void main ( String args[] )</a>
Public static void main ( String args[] ) Public static void main ( String args[] ) Public static void main ( String args[] )
Comments
Post a Comment