Infosys interview question

What is a constructor in Java