Why does sometimes the class have public beforehand? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Why does sometimes the class have public beforehand?

something like this public class myClass { public static void main(String[] args) { system.out.println("Hello World"); } }

28th Aug 2018, 5:34 PM
Miguel Guerrero
Miguel Guerrero - avatar
1 ответ
+ 9
Class is accessible for classes, interfaces in separate packages. 🤗🙆‍♂️💖
28th Aug 2018, 5:47 PM
NimWing Yuan
NimWing Yuan - avatar