can we use private insist of public | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

can we use private insist of public

can we use private insist of public public static void main(string args[]) what will happen if it take place

3rd Oct 2016, 5:53 AM
Balaji
Balaji - avatar
1 Answer
+ 1
If you declare main as private, your program won't be able to find it, so no.
3rd Oct 2016, 9:42 AM
Zen
Zen - avatar