Why does this code throw a NumberFormatException :
NumberFormatException
String binStr = \"1000000000000000000000000000000000000000000000000000000000000000\"; System
Because it's out of range. 1000...000 is 263, but Long only goes up to 263 - 1.
1000...000
Long