Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why this program is giving Compile error?

 
vishal mishra
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NAMASTE Friends !!

Please Explain why character literal char a='\u000A' is giving compile error..

Error-:" ADirtyOne.java:4:error: illegal line end in character literal char a='\u000A';"

Program is given below-:


Thankyou...
 
fred rosenberger
lowercase baba
Bartender
Posts: 12180
34
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
compiler errors are given because there is some kind of syntax error.

Of course, you could search this forum, and find this or this, which cover the same question.
 
vishal mishra
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic