This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes ((khalid mughal's)) Ques. on char Confusing? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "((khalid mughal Watch "((khalid mughal New topic
Author

((khalid mughal's)) Ques. on char Confusing?

Ajay Singhal
Ranch Hand

Joined: Jan 10, 2001
Posts: 37
Hi!
please clefy the ans?
Select all the valid statements?
1) char a='\u0061';
2)char \u0061='a';
3)ch\u0061r a='a';
Ans: All are correct?
------------------
Vegad Arvind
Ranch Hand

Joined: Jan 10, 2001
Posts: 42
Hi,

Yes all the correct
1) char a='\u0061';
here \u0061= a > char a = 'a' valid

2) char \u0061='a';
here \u0061 = a > char a = 'a' valid
\u0061 is an identifier
3) ch\u0061r a='a';
char a = 'a' valid

Best Regards !
Arvind Vegad
Michael Burke
Ranch Hand

Joined: Jul 29, 2000
Posts: 103
What does the r stand for in the last example?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ((khalid mughal's)) Ques. on char Confusing?
 
Similar Threads
Ques from ((khalid mughal)) very Confusing?
char range
Unicode
IS THIS LEGAL
ch\u0061r a = 'a';