This puzzle comes from the wonderful mind of Nikesh Shetty
Below is the code for a floating object in java.
1. What result will you have from each method?
2. Explain why.
Email us at email@example.com with your answer to be in with a chance to win prizes!
The closing date for answers is January 10th.
The names of all of the people who get the puzzle right will be published in our next issue. The winner will be randomly chosen by the P2 elves, and will receive the ThoughtWorks book of their choice.
Sign up to receive the latest edition of P2 Magazine.