Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

SCJP Coaching

 
ankur prabhu
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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 ]
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Report post to moderator
System.out.println((x ==x));

In which condition above statement will return false?
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • 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
  • Report post to moderator
Yeah, It is possible!!
 
Rick Portugal
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • 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
  • Report post to moderator
 
    Bookmark Topic Watch Topic
  • New Topic