What is the role of a constructor in Java?
To perform data processing and calculations
To initialize an object
To declare variables and methods
To initialize the static fields of a class