Accenture interview question

Java and the constructor with example