What are the difference between the following to statements char a = 061; // 1 char b = '\61'; // 2
Raghu J<br />SCJP 1.4<br /> <br />The Wind and waters are always<br />on the side of the ablest navigators.<br /><a href="http://groups.yahoo.com/group/scjp_share" target="_blank" rel="nofollow">SCJP Group</a><br /><a href="http://groups.yahoo.com/group/JavaBeat_SCWCD" target="_blank" rel="nofollow">SCWCD Group</a>
Hi, Both are character literals representing octal value 061.The only difference is that with second form(with escape sequence) we can represent octal values up to 377 only.