Owl Teach Yourself Java 2 in 21 Days, Third Edition
HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / THANKS
ROGERS CADENHEAD

Day 8: Data Structures

Certification Practice

Each chapter of the book ends with a Certification Practice question that's comparable to what you could expect to be asked on a Java certification test. Here's the answer for chapter 8:

Answer (d) is correct. This class uses recursion, the technique of calling a method within itself. Calling getValue(17) causes getValue(34) to be called, which causes getValue(68) to be called, which causes getValue(136) to be called. Because 136 is greater than 100, getValue() will return that value instead of calling itself again.

Answers (a), (b), and (c) are incorrect. Edit

Return to Day 8

   
HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / THANKS

Valid HTML 4.01!

Valid CSS!