Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WHAT THE HELL IS THIS CODE ???

 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
gutta rahul
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh,...thank u
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic