Originally posted by ashis behera:
if there are a no of constructors defined in a class with different arguments then which constructor will be executed???please do reply guys.
That depends on how you are trying to create the object? The arguments while calling will be matched with arguments of the constructor which will determine which constructor will be executed.
One more thing to note is that , if you define any constructor (parametrized) then you have to define the no argument constructor yourself if you want to create object of this class with any argument as the compiler will not put the default constructor in that case.