I did the following, i got a stackoverflow error after some time, and I understand why it was.
public class Cat { String name=\"default name\"; Cat i
There is nothing wrong in having an instance member of same class. an Employee has a manager and the manager is also an Employee
public class Employee{ private Employee manager; //getters setters and constructor }