File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ajay Singhal
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 103
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic