title: Accessing an instance of a variable from another class in Java
body: <p>Is it possible to access an instance of a variable in one class from another class in Java.</p>
  
  <p>Let's say you have the following in Class A:</p>
  
  <pre><code>private BlockingQueue&lt;byte[]&gt; buffer = new LinkedBlockingQueue&lt;byte[]&gt;();
  </code></pre>
  
  <p>I want to make changes to the queue in this class and then be able to use to access it from another class.</p>
  
  <p>How would i access the instance of buffer from another class? Is it even possible?</p>