First Program Explanation-
public static void main(String args[])
public- This Function is accessible without the object of that class.
static- Static function created a common function for all object of That class. Static Variable and
function can be called by class name
void - This function does not return any value
String args[] - This is used to take value from command line at time of run command
System.out.println- System is the Package in Java -
out is sub-package for output on screen
println- Println add Enter after printing that line
print- Print add no Enter after printing that line
No comments:
Post a Comment