| 1 | d
| Prints: true,true
| |
| 2 | a
b
c
d
e
| doubleValue
floatValue
intValue
longValue
parseDouble
| |
| 3 | c
| Prints: true,false
| |
| 4 | b
| Prints: ffF
| |
| 5 | f
| Prints: BbB
| |
| 6 | c
| Compile-time error
| |
| 7 | g
| Prints: true,true,false
| |
| 8 | g
| valueOf
| |
| 9 | b
d
e
| Long.parseLong("1L")
Long.parseLong("0x10")
Long.parseLong("1.0")
| |
| 10 | e
| Prints: true,false,false
| |
| 11 | e
f
| parseDouble
valueOf
| |
| 12 | b
d
e
| Long.parseLong("+1")
Long.parseLong("1L")
Long.parseLong("1.0")
| |
| 13 | a
b
| intValue
parseInt
| |
| 14 | e
g
| parseDouble
valueOf
| |
| 15 | c
| Prints: true,false
| |
| 16 | f
| Run-time error
| |
| 17 | b
| Prints: false,true
| |
| 18 | b
d
| Compile-time error at 2.
Compile-time error at 4.
| |