• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ques from ((khalid mughal)) very Confusing?

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I'm getting a problem in one simple Ques.
Select all valid answers?
1)char a='\u0061';
2)char \u0061='a';
3)ch\u0061r a='a';
ans : All are valid!!
------------------
 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ajay,
If I am not mistaken char a='\u0061'; does not confuse you. I was sorely tempted to give you the answer straightaway, but , since Khalid has gone to so much trouble to create a question which is so fiendish and yet so simple I cannot give you the answer. However I shall give you a hint.
\u0063h\u0061r r = 'x';
Is also valid. Compile it and see for yourself.
I like this question. Its so
Cheers
Sahir

sahirshah@emirates.com

www.geocities.com/sahirshah

[This message has been edited by Sahir Shah (edited January 13, 2001).]
 
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ..
I'm closing this thread ... see duplicate post and answers in http://www.javaranch.com/ubb/Forum24/HTML/007246.html
Jane
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic