This is from comprehensive exam 10:
Question 17
Which of the class instance creation expressions would produce a run-time error?
a. Long.parseLong("1")
b. Long.parseLong("1L")
c. Long.parseLong("010")
d. Long.parseLong("0x10")
e. Long.parseLong("1.0")
There are no class instance creation expressions in this question. If it were valueOf(
String str), then probably yes.