How to identify a class and an interface in the Java code?
<p>Say suppose I have the following Java code.</p>

<pre><code>    public class Example {
        public static void main(String[] args){
            Person person = new Employee();
        }
    }
</code></pre>

<p>How to find out whether the Person is a class or an interface?</p>

<p>Because the <code>Employee</code> class can extend it if it's a class, or implement it if it's an interface.</p>

<p>And in both cases <strong>Person person = new Employee();</strong> is valid.</p>
