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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

SCJP Coaching

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi ranchers,

I am Ankur, providing coaching for SCJP in Pune, India. If any body interested then contact me at [removed]. The whole course involves OOPs concept, Core Java and intensive SCJP preparation with 100% money back guarantee.

In case of any query, feel free to contact me at [removed].

Regards,
Ankur

[Removed out of date infor at the request of the poster - Dave]
[ October 11, 2006: Message edited by: David O'Meara ]
 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
System.out.println((x ==x));

In which condition above statement will return false?
 
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Is that possible ?
I tried with null & NAN but returns true ?
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Yeah, It is possible!!
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I'm not sure how this riddle relates to the original message, but since you posted it, don't you think you should provide the answer?

How can System.out.println((x ==x)) return false?

My guess is that if you aren't able to print it could return false. For example if you were redirecting the output but you did not have the needed authority it might return false. I see no way that x==x itself could return false.

So what is the answer?
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
 
Let's get him boys! We'll make him read this tiny ad!
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
    Bookmark Topic Watch Topic
  • New Topic