study guides for every class

that actually explain what's on your next test

NumberFormatException

from class:

AP Computer Science A

Definition

NumberFormatException is an exception that occurs when you try to convert a string into a numeric type (like int or double), but the string does not have the appropriate format for conversion.

"NumberFormatException" also found in:

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.