This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi Vishy, This is a tricky question.The line public boolean B(Stringmsg) is a method and not a constructor since there is a boolean return type. Sice there is no constructor,, a default nor arg constructor is provided adn hence this code gives no compiler error.