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 ((khalid mughal's)) Ques. on char Confusing? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ((khalid mughal's)) Ques. on char Confusing?