question: public void testConstrStringException ( ) { String a = "-238768.787678287a+10" ; try { BigDecimal bd = new BigDecimal ( a ) ; fail ( "NumberFormatException has not been caught: " + bd . toString ( ) ) ; } catch ( NumberFormatException e ) { } }
target:  new BigDecimal(String value) when value is not a valid representation of BigDecimal.