As far as i know the class containing the executable main function needs to be declared as public. Please do correct me if wrong | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

26th Jul 2018, 12:16 PM
Shubhangi Gupta
Shubhangi Gupta - avatar
2 Answers
26th Jul 2018, 12:23 PM
Mohammad Amir Aqeel
Mohammad Amir Aqeel - avatar
0
Then how is this working with public class https://www.sololearn.com/learn/Java/2137/?ref=app
26th Jul 2018, 1:10 PM
Shubhangi Gupta
Shubhangi Gupta - avatar