File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes WHAT THE HELL IS THIS CODE ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "WHAT THE HELL IS THIS CODE ???" Watch "WHAT THE HELL IS THIS CODE ???" New topic
Author

WHAT THE HELL IS THIS CODE ???

Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
select which of the following are valid declarations (select 3 options)
question from khalid mughal book page no. 76


khalid mughal says 3,5,6 are correct. but compiler doesnt agree.
it says only line 3 in OK. will this code compile on 1.4 comliler ? i used 1.5 compiler.

is khalid mughal incorrect ??? the xpalnation at the book of the book is written explicitly that
the notation \uxxxx can be typed anywhere in the code to represent unicode characters

please help out
thanks in advance


SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
gutta rahul
Greenhorn

Joined: Nov 23, 2003
Posts: 12
Hi,

in line 5 and 6 you are using \0061 instead of \u0061, which is giving the compilations error on those lines.
Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
oh,...thank u
 
 
subject: WHAT THE HELL IS THIS CODE ???