Author | Topic: I don't get it! |
Java Nut unregistered |
posted May 02, 2000 07:33 AM
From the before mentioned Java Quiz Pages Why does this not compile public class AQuestion And this does: public class AQuestion Note that the code in question is commented out in both instances, but the compiler parses this code and checks syntax anyway! Anyone know why?
|
satya5 ranch hand |
posted May 02, 2000 09:47 AM
Java Nut: While I donot know the exact reason for this you could work around the problem using /* char a = '\u000A'; */ which works. Regds. - satya
|
Ajith Kallambella ranch hand |
posted May 02, 2000 09:51 AM
For some reason the compiler is not liking the char declaration within the // comments If you change it to an int, or any other damn Gods must be crazy.
|
maha anna bartender |
posted May 02, 2000 05:04 PM
Java Nut, The compiler acts according to the Java lang spec. From JLS Please refer to JLS especially this section regds
|
| | |