1). Class declaration:- As strored erlier, Java isa true object oriented language and therefore everything must be placed inside a class, class is the keyword and declares that a new definition follows:
2). Mainline:-
a. public : The keyword public is an access spefieds that declares the main methods as
uprtotected and therefore making it accessable to all other classes.
b. static : Static keyword declares this method as one that belongs to the entire class not a part
of any object of class. The main text always be declares as static.
In a java program metod as well as variables can be of static type.
c. void main : When a funciton directly does not return any value the it is called as void main.
d. String args[] : This statement declares a parameter named args[[, which contains an array
of object of the class type string.
0 Comments:
Post a Comment