+ 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 Answers
+ 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