title: How to print values of an object in Java when you do not have the source code for the class?
body: <pre><code>public class MyClass {
          ClassABC abc = new ClassABC();
  } 
  </code></pre>
  
  <p>I just have a .class file of ClassABC. I want to print all the public, private, protected and default field values of "abc" object. How can I do this using Reflection?</p>