bugs.java.com
Bug ID: JDK-4106143 About polymorphism: changing the return type...
The following code give an example with the two classes aboveADVANTAGE IN THE java.text.Format.parseObject(String) METHOD: The java.text.NumberFormat.parse(String) method is implemented as below