title: Java - Comparing classes?
body: <p>How can i compare 2 classes?</p>
  
  <p>The following if statement never passes although class is type of MyClass:</p>
  
  <pre><code>public void(Class class) {
     if (class == MyClass.class){
  
     }
  }
  </code></pre>