Java reflect Field get class variables

  • A class itself is merely a description for fields, methods & constructors.
  • Non-static fields only got values stored in them after a class is instantiated.
  • Therefore, we’ve gotta have an instance of a class prior to use the reflective method Field::get().
5 Likes