Created
January 7, 2010 20:20
-
-
Save brianm/271542 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// okay java trivia weenies, which asserts pass, which fail? | |
Integer foo = 42; | |
Integer bar = 42; | |
assert foo <= bar; | |
assert foo >= bar; | |
assert foo == bar; | |
foo = 1000; | |
bar = 1000; | |
assert foo <= bar; | |
assert foo >= bar; | |
assert foo == bar; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment