if an inner class is not declared private is it accesible from outside classes or not? i would appreciate any help | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

if an inner class is not declared private is it accesible from outside classes or not? i would appreciate any help

4th May 2017, 3:54 PM
shobhit
shobhit - avatar
1 Réponse
+ 12
You can access a public static nested class from outside. Check this tutorial for further information: https://docs.oracle.com/javase/tutorial/java/javaOO/nested.html
4th May 2017, 4:58 PM
Tashi N
Tashi N - avatar