+ 2
As far as i know the class containing the executable main function needs to be declared as public. Please do correct me if wrong
4 Respuestas
+ 7
Shubhangi Gupta Yes you are right 😊😊https://www.sololearn.com/learn/Java/2137/
0
Then how is this working with public class
https://www.sololearn.com/learn/Java/2137/?ref=app