I saw Java examples that use reflection to change values of member variable from outside of the class at run time. It may be done for private and even final fields. May be there is a way to add a field to a class at run time using reflection ?
I found very similar question: Can a Java class add a method to itself at runtime?
The answer is yes, it is possible using custom class loaders or byte code manipulation tools.