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
Physics,
6 months ago
Math,
6 months ago
Social Sciences,
11 months ago
CBSE BOARD XII,
11 months ago
Math,
1 year ago