title: Call the method of Java class which implements runnable after creating its thread object
body: <p>I have a java class </p>
  
  <pre><code>SomeClass implements Runnable
  </code></pre>
  
  <p>Which has a method display().</p>
  
  <p>When I create a thread of this class</p>
  
  <pre><code>Thread thread1 = new Thread(new SomeClass());
  </code></pre>
  
  <p>Now how I can call the display() method using the thread instance? </p>