Prashanth Patha wrote:
Sir , here what is meant by "except that the first character may be an ASCII minus sign" and how the given string in my post is evaluated to 4294967168 ?
and how -128 value ( in binary ) can be passed to valueOf("",2) method ?
You are overthinking here -- the valueOf() method that takes a radix simply does base conversion. It doesn't actually use the internal binary representation for base 2, nor does it understand twos complement.
Negative 128 in base two, as a string is simply .... "-10000000".
Henry