ans. in java constructor initialize an object.In consturctor class name and constrructor name must be same .It has no return type even void .
CONSTRUCTOR are two type in java.i)default , ii)parameterized.
EXAMPLE:
class A{
A(){ // DEFAULT CONSTRUCTOR......
}
A(1,2,3){ //PARAMETERIZED CONSTRUCTOR...
}
}
N.B:IN JAVA COPY CONSTRUCTOR NOT SUPPORTED i,e.IN JAVA COPY CONSTRUCTOR NOTHING BUT A GENERAL CONSTRUCTOR.......