Muh Po

Greenhorn
+ Follow
since Aug 13, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
3
Given in last 30 days
3
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Muh Po

Campbell Ritchie wrote:Wlcome to the Ranch

Please copy exactly what the book said, using exactly the same notation; you may find it useful to use the ⁸ HTML tag for ⁸.
Many people write ^ thinking it is the exponentiation operator, but in Java┬« it isn't. It is bitwise exclusive or.Java┬« doesn't have an exponentiaton operator; I don't know whether the bitwise operators will appear in your exam.



Yes you're right, thank you!
I meant the exponential Operator, not the XOR-Operator.

I have corrected it.

Liutauras Vilda wrote:Which book is that?

Muh Po wrote:should be

... 2x2 + 4x2 + 8x2 + 16x2 + 32x2 + 64x2 + 128x2 = 256


And how did you get 256 by proposing such calculation? I'm getting 508.



The Book: OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808

Sorry i made at first a mistake, starting at 2x2, but now i corrected it and started with 1x2.

But now i understand what is meant in the book, what was written is not so mathematical correct.

What is meant is this:
(((((((2 * 2 = 4) * 2 = 8) * 2 = 16) * 2 = 32) * 2 = 64) * 2 = 128) * 2 = 256)

Hello,
i think on page 21 is a Errata, there should be plus (+) instead of equal (=) signs:

2^8 is 2x2 = 4x2 = 8x2 = 16x2 = 32x2 = 64x2 = 128x2 = 256

should be

2^8 is 2x2 + 4x2 + 8x2 + 16x2 + 32x2 + 64x2 + 128x2 = 256

bye!