Why does my code result in a compiler error? : <p>I'm trying to understand why my code causes an compiler error. Can someone explain it to me?</p>

<pre><code>public class Employee {
    private String name;

    public Employee(String name) {
    this.name = name;
    }
}

public class Test {
    public static void main(String[] JavaLatte) {
        Employee e = new Employee("JavaDeveloper");
        System.out.println("Emp Name : " + e.name);
    }
}
</code></pre>
