Just the other day, a friend posed a quick "Java Puzzler" just for the heck of it.
Here's the code...
System.out.println(true?false:true==true?false:true);
What does this print out?
Have a thought. Comment your answer and I'll let you know if you're right or not? ;)
Here's the code...
System.out.println(true?false:true==true?false:true);
What does this print out?
Have a thought. Comment your answer and I'll let you know if you're right or not? ;)
No comments:
Post a Comment
Please feel free to add your comments. However, take note that your comments may be edited or deleted as seen fit by the author of this blog.
Take note that the author of this blog may not be held responsible for the comments which may be insensitive, vulgar or controversial.