Example. public class Puppy { public Puppy() { } public Puppy(String name) { // This constructor has one parameter, name. } } Java also supports Singleton Classes where you would be able to create only one instance of a class. Note − We have two different types of constructors.