I was going through an article regarding private access specifier , when to use private and what benefits does it offers in terms of encapsulation at the following url Regarding private access specifier
But there is one thing that was not clear in this article regarding accessing the private variable outside the class..Though private methods or variables are not accessible outside of Class, they can be accessed via reflection by using setAccessible(true) and changing there private visibility.
could you please show me a small example so that i can understand technically also.