In java why we use public static void main and whats th reason to use and where we use
Answers
Answered by
0
We use it because it is the first line to be compiled when we execute our program.it is used just after class.
Answered by
2
The statement public static void main defines and marks the beginning of the main function suggesting that the program starts there.
#sumedhian ❤❤
Similar questions
Math,
6 months ago
English,
6 months ago
English,
6 months ago
Social Sciences,
1 year ago
CBSE BOARD XII,
1 year ago
Math,
1 year ago