Is it possible in Java to access private fields via reflection

Viewed 142962

Is it possible in Java to access private field str via reflection? For example to get value of this field.

class Test
{
   private String str;
   public void setStr(String value)
   {
      str = value;
   }
}
3 Answers
Related