When you declare a class in oops, you can provide with your own constructor to specify custom initialization for objects of your class. Without constructor your program would not run. Constructor must have same name like class name. There is no destructor in java.