Embed presentation
Downloaded 11 times


![Import <package name>
Class <class name>
{
Public static void main( string array[ ] )
{
Instance var;
Instance var;
Return type method name()
{
--------------------------------------------
------------------------------------
--------------
}
}
}](https://image.slidesharecdn.com/java-180906055936/85/Java-program-structure-3-320.jpg)


![Public:-public is a access specifier when a class member is produceded
by public than its member can be access by code out side in its class .
Void main:-void main is a return type and main is the class of java
.when class main is declared by void it means is doesn’t returen only
value .
String array:-java created everything as a string so it store value
declared an array array[ ] whose type is string](https://image.slidesharecdn.com/java-180906055936/85/Java-program-structure-6-320.jpg)

Class <class name> contains a main method that declares instance variables and calls other methods without creating objects. The main method has a string array as a parameter and does not return a value. Import is used to include packages that contain classes needed for input/output and other operations.


![Import <package name>
Class <class name>
{
Public static void main( string array[ ] )
{
Instance var;
Instance var;
Return type method name()
{
--------------------------------------------
------------------------------------
--------------
}
}
}](https://image.slidesharecdn.com/java-180906055936/85/Java-program-structure-3-320.jpg)


![Public:-public is a access specifier when a class member is produceded
by public than its member can be access by code out side in its class .
Void main:-void main is a return type and main is the class of java
.when class main is declared by void it means is doesn’t returen only
value .
String array:-java created everything as a string so it store value
declared an array array[ ] whose type is string](https://image.slidesharecdn.com/java-180906055936/85/Java-program-structure-6-320.jpg)
