0

Public class or class

I’ve seen some java program use Public class, and just class, why is that

16th Feb 2019, 11:37 PM
FlameBlaze1
FlameBlaze1 - avatar
1 Réponse
+ 2
class --> default: private It doesn't matter if you have only one class public class --> it is visible to other classes / other classes have access https://stackoverflow.com/questions/16779245/what-is-the-difference-between-public-class-and-just-class
16th Feb 2019, 11:45 PM
Denise Roßberg
Denise Roßberg - avatar