Skip to main content

Posts

Showing posts from October, 2011

What is the mean of ..............public static void main(String args[ ]).............in java?

Public: - public specify that the method is accessible from outside the class. ClassName.function()   Static: - Static specifies that the method can be called without creating the object. Void: - Void specifies that the method does not return any result to the calling environment. String args []:- While running a program at the control line we can pass some arguments to it. These arguments and this array are used to hold the args provided at the command prompt.