title: how to change the attribute value using reflection
body: <p>is it possible to change the value of an attribute of a class using reflection.</p>
  
  <p>below is my class :-</p>
  
  <pre><code>public class LoggerManager {
  
      private static LoggerManager _instance = new LoggerManager();
  
      private LoggerManager() {
      }
  
      public static LoggerManager getInstance() {
              return _instance; 
      }
  
      public Logger getLogger(String FQCN) {
          Logger logger =  Logger.getLogger(FQCN);
          logger.setLevel(Level.INFO);
          return logger;
      }
  }
  </code></pre>
  
  <p>i want to change the value of <code>_instance</code> variable using reflection..</p>
  
  <p>basically i want to change the value of the same to <code>_instance = new NewLoggerManager();</code>,</p>
  
  <p>provided that <code>NewLoggerManager extends LoggerManager</code></p>
  
  <p>is it possible to do so, as i know how to invoke methods, but how to do this one.. ???</p>