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!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответ
+ 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