I’m facing an issue which is producing an output which is not exactly per the norm. I have read that in case of constructor ambiguity the first constructor gets called. But I’m facing a completely different issue. My class – XML file – Main code – Output- My only concern here is why is the second constructor getting called here,