<code>Integer.parseInt("42")</code> returns
- A
0
- Bcheck_circle
42 (int)
- C
Throws exception
- D
"42" (String)
Explanation
Parses string to int. Throws <code>NumberFormatException</code> if not valid.
AP Computer Science A· difficulty 3/5
<code>Integer.parseInt("42")</code> returns
0
42 (int)
Throws exception
"42" (String)
Explanation
Parses string to int. Throws <code>NumberFormatException</code> if not valid.
Want 10 more like this — adaptive to your weak spots?