the main function in a java programme is declared as:
public static void main(string args())
what is the significance of the words public,static and void?
if anyone answers then I will mark your answer as the brainliest one.
Answers
Answered by
21
Hey mate public is keyword which allows us to access the program in other programs.
Static helps us to make the function or variable global which allows us to use that variable throughout the programme.
Void is a return type of the function.
extramarks6667:
do you have any proof of the answer if you have it in your book plzz send the screenshot
Similar questions