The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Y comment gives error...!!!

Posted by ruchi and hema on November 10, 2000 at 1:25 AM


Hi..

u might be surprised to know this comment gives compilation error..

class a{
//char b='\u000a';
}

Also when we write as this...
//char b='\u000A';
This also gives error...

the same code if we write in multiline comments..it works
no compilation error..

/* char b='\u000A'; */

plz. anyone knowing the reason for such strange behaviour,explain
us in details.
Thanking you in anticipation ,
Ruchi and Hema




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us