Computer Science, asked by sanjaykrishna466, 10 months ago

main method can be declared as private​

Answers

Answered by Anonymous
0

Answer:

Yes, we can declare main method as private. It compiles without any errors, but in runtime, it says main method is not public.

Answered by RISKYRO1948R
0

Answer:

Yes, we can declare main method as private. It compiles without any errors, but in runtime, it says main method is not public.

Similar questions