aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Another question from the quiz Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Another question from the quiz" Watch "Another question from the quiz" New topic
Author

Another question from the quiz

Bing Lu
Ranch Hand

Joined: Oct 10, 2000
Posts: 42
Why does the following complain about invalid expression, while
it compiles fine without the "//char a = '\u000A';", help is greatly appreciated
public class ADirtyOne
{
//char a = '\u000A';
}
An attempt to compile the above class
1.will complete successfully.
2.will compile sucessfully but with a warning message.
3.will not compile - complains on an invalid expression.
lakshmi nair
Ranch Hand

Joined: Oct 11, 2000
Posts: 63
Check this. Its the same over there
http://www.javaranch.com/ubb/Forum24/HTML/004283.html
 
 
subject: Another question from the quiz
 
Threads others viewed
Abhilash Mock Ques
char literals
illegal character assignment
2 questions from Mock Exams.
Unicode representation of a character
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture