Computer Science, asked by sona1640, 1 year ago

In java why we use public static void main and whats th reason to use and where we use​

Answers

Answered by amannishad0512p5zxh6
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 Anonymous
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