+ 3

How to make private fields really safe?

The code shows a small example how to get access to a private field. I am wondering if it would be possible to avoid getting access via reflection. https://code.sololearn.com/cp86NFcGpqUe/?ref=app

7th Jun 2021, 5:20 PM
Denise Roßberg
Denise Roßberg - avatar
3 Respostas
7th Jun 2021, 6:52 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 2
TheWh¡teCat 🇧🇬 Thank you very much. I did not know that Java has a class SecurityManager. I will try it out.
7th Jun 2021, 7:22 PM
Denise Roßberg
Denise Roßberg - avatar
0
get OneNote
9th Jun 2021, 9:52 AM
Khiezlyn Ladiao ❤
Khiezlyn Ladiao ❤ - avatar