title: Reflection in Java (distinguishing two types)
body: <p>In my program I'm passing <strong>2 strings</strong> to some method for an evaluation.
  The method has to get the <code>Class</code> class for these strings(if it's a real class name!) and compare for their commonalities.
  There can be 2 type of inputs for strings:</p>
  
  <ol>
  <li>A Class name in Java API like "java.lang.Byte","java.lang.Math", etc.</li>
  <li>Any other string possible like "some string", "hello", etc.</li>
  </ol>
  
  <p>in my method which gets these two strings how could I understand whether it is of type 1 or 2 so not to get <code>Exception</code>?</p>