Hello all,
As per the
Java Language Specification the escape char '\' can only be followed by any one of the following char/ values.
\b, \t,\n,\f,\r,\',\", Octal Escape.
The Octal Escape in turn can have any octal vaue < 377(Octal) i.e., decimal equivalent of 255.
As others have explained only octals can take part of a escape sequence.
To the original post as 81 is not an octal u r getting the Error.
And Mr.kumar, as ur variable d is not assigned an octal value ( x doesnot come in as octal) ur getting the compiler error.
P.S;- This is my first post into this forum so if u have any feedbacks please reply to me.