user-avatar
Today is Thursday
February 23, 2012

March 24, 2011

What is the parseObject() method?

by admin — Categories: CertificationComments Off

The parseObject() method parses text from a string to produce a Number. The method starts the parsing process by parsing the text starting at the index given by pos. If parsing succeeds, then the index of pos is updated to the index after the last character used, and the parsed number is returned. The new pos can be used to indicate the starting point for the next call to this method. Following is the general format of the method:

parseObject public final Object parseObject(String source, ParsePosition pos)

Here, source is a String, part of which should be parsed, pos is a ParsePosition object with index and error index information as described above. This method throws NullPointerException if pos is null.
Download practice question and study guide for CX310-065 for exam.

Share
© 2012 SCJP 4 You All rights reserved - Wallow theme v0.46.4 by ([][]) TwoBeers - Powered by WordPress - Have fun!