You can access private variables in Java without getters from a class that's not an inner class -
this question has answer here:
- how read private field in java? 9 answers
i have clue of serialversionuid for, , in far don't can up. can private variable that's not used inside class. there construct or behind that? there other examples of private variables / methods not used inside same class? can access private variables in java without getters class that's not inner class, serialization does?
you can access values, , manipulate them via reflection. mechanism can check fields , invoke methods.
Comments
Post a Comment