Computer Science, asked by extramarks6667, 1 year ago

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 Allocez
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
Allocez: i don't have the book right now
Allocez: it's there in computer book
Allocez: of class 10
Similar questions