+ 1
Why did Sololearn replaced public static void Main(){ } with static void Main(){ }
Can you tell me their difference and why they did it
2 Answers
0
By default the template sets the method public, which is required by JVM by definition. Without the public modifier the method would be package private and due to that invisible for the JVM.
0
I said c#