Sams Teach Yourself Java in 21 Days (Covering Java 8 and Android)
HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / PREVIOUS DAY / NEXT DAY / THANKS
ROGERS CADENHEAD

Day 16: Serializing and Examining Objects

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 16:

Answer (a) is correct. When you use the new statement to instantiate an object, it will be created as an object of that class. Because Object is a superclass of String (and all other classes), it can be used whenever you're creating an object.

Answers (b), (c), and (d) are incorrect Edit

Return to Day 16

HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / PREVIOUS DAY / NEXT DAY / THANKS

Valid HTML 4.01!

Valid CSS!