This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Ques from ((khalid mughal)) very Confusing?

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
Liar, liar, pants on fire! refreshing plug:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!