| Share this post! | Vote this! |
|
public static void main(String args[]){
}
Now lets understand why do we write the above statement, the way it is written above.
Why not change it?
The public keyword is an access specifier, which allows the programmer to control the visibility of class members. When a class member is preceded by public, then that member may be accessed by code outside the class in which it is declared. (The opposite of public is private, which prevents a member from being used by code defined outside of its class.) more...




0 comments:
Post a Comment