Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Associate Certification (OCAJP 8)
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Certification
»
Associate Certification (OCAJP 8)
What does ~ do?
Kendall Ponder
,
Ranch Hand
Apr 01, 2015 09:34:20
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
It isn't in the book but it is on an enthuware
test
. I googled and couldn't find the answer.
Guillermo Ishi
,
Ranch Hand
Apr 01, 2015 09:41:20
(0 cow)
(0 skulls)
1
+Pie
Number of slices to send:
Send
It is called a tilde, to help you google it. It is the bitwise not operator
a = 0b010;
b = ~a;
b == 0b101;
Roel De Nijs
,
Sheriff
staff
Apr 01, 2015 09:44:10
(0 cow)
(0 skulls)
1
+Pie
Number of slices to send:
Send
It's the unary bitwise complement operator "~". That makes googling a lot easier
It inverts a bit
pattern
; it can be applied to any of the integral types (not on booleans), making every "0" a "1" and every "1" a "0".
Nice to know: bit-twiddling operators are not on the OCA exam.
Hope it helps!
Kind regards,
Roel
Kendall Ponder
,
Ranch Hand
Apr 01, 2015 10:15:35
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Thanks!
Junilu Lacar
,
Sheriff
staff
Apr 01, 2015 10:26:06
(0 cow)
(0 skulls)
1
+Pie
Number of slices to send:
Send
Check this out:
http://docs.oracle.com/javase/tutorial/java/nutsandbolts/op3.html
Kendall Ponder
,
Ranch Hand
Apr 01, 2015 10:43:28
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Thanks!
Post by:
autobot
I don't get it. A whale wearing overalls? How does that even work? It's like a tiny ad wearing overalls.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
This thread has been viewed 840 times.
Similar Threads
Whizlabs SCJP 5.0 Simulator and Enthuware JQPlus 5.0
few questions
What is persistencecontext and EntityManager ?
Displaying a progress in a popup-window while waiting
Passed OCAJP 7 with 81%, Still can't believe it
More...
All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:23:13
.