What is a Constructor in Java?
A constructor in Java is a special type of method that is used to initialize objects. It is called when an object of a class is created and has the same name as the class.