OCA Java SE 7 Programmer I Study Guide
(Exam IZO-803)
OCA Java SE 7 Programmer I Study Guide
(Exam IZO-803)
Edward Finegan
Robert Liguori
McGraw-Hill is an independent entity from Oracle Corporation. This publication and digital content may be used in assisting students to prepare for the Oracle Certified Associate Java SE 7 Programmer I exam. Neither Oracle Corporation nor The McGraw-Hill Companies warrant that use of this publication will ensure passing the relevant exam. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
New York Chicago San Francisco Lisbon London Madrid
Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto
Copyright 2013 by The McGraw-Hill Companies. All rights reserved. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher, with the exception that the program listings may be entered, stored, and executed in a computer system, but they may not be reproduced for publication.
ISBN: 978-0-07-178944-8
MHID: 0-07-178944-8
The material in this eBook also appears in the print version of this title: ISBN: 978-0-07-178942-4, MHID: 0-07-178942-1.
McGraw-Hill eBooks are available at special quantity discounts to use as premiums and sales promotions, or for use in corporate training programs. To contact a representative please e-mail us at .
All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the benefit of the trademark owner, with no intention of infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. All other trademarks are the property of their respective owners, and McGraw-Hill makes no claim of ownership by the mention of products that contain these marks.
Screen displays of copyrighted Oracle software programs have been reproduced herein with the permission of Oracle Corporation and/or its affiliates.
Sponsoring Editor
Timothy Green
Editorial Supervisor
Jody McKenzie
Project Manager
Tania Andrabi, Cenveo Publisher Services
Acquisitions Coordinator
Stephanie Evans
Technical Editor
Ryan Cuprak
Copy Editor
Lisa Theobald
Proofreader
Carol Shields
Indexer
Rebecca Plunkett
Production Supervisor
James Kussow
Composition
Cenveo Publisher Services
Illustration
Cenveo Publisher Services
Art Director, Cover
Jeff Weeks
Cover Design
Pattie Lee
Information has been obtained by McGraw-Hill from sources believed to be reliable. However, because of the possibility of human or mechanical error by our sources, McGraw-Hill, or others, McGraw-Hill does not guarantee the accuracy, adequacy, or completeness of any information and is not responsible for any errors or omissions or the results obtained from the use of such information.
Oracle Corporation does not make any representations or warranties as to the accuracy, adequacy, or completeness of any information contained in this Work, and is not responsible for any errors or omissions.
TERMS OF USE
This is a copyrighted work and The McGraw-Hill Companies, Inc. (McGraw-Hill) and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hills prior consent. You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right to use the work may be terminated if you fail to comply with these terms.
THE WORK IS PROVIDED AS IS. McGRAW-HILL AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. McGraw-Hill and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free. Neither McGraw-Hill nor its licensors shall be liable to you or anyone else for any inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting therefrom. McGraw-Hill has no responsibility for the content of any information accessed through the work. Under no circumstances shall McGraw-Hill and/or its licensors be liable for any indirect, incidental, special, punitive, consequential or similar damages that result from the use of or inability to use the work, even if any of them has been advised of the possibility of such damages. This limitation of liability shall apply to any claim or cause whatsoever whether such claim or cause arises in contract, tort or otherwise.
To Adalyn Irene, my beautiful and amazing new daughter , and my wife, Shannon. Without their love and support , this project would not have been possible .
Edward G. Finegan
To Ashleigh, Patti, my family, and friends
Robert J. Liguori
Edward Finegan is the founder of Dryrain Technologies. His company specializes in mobile software development supported by enterprise Java backends. He has previously worked in the casino gaming industry, where he designed and implemented software for gaming machines. He also has previous experience in air traffic management systems and radar protocols.
Finegan has a bachelors degree in computer science from Rowan University and a masters degree in computer science from Virginia Commonwealth University. His thesis, entitled Intelligent Autonomous Data Categorization , examined the possibility of using machine-learning algorithms to categorize data intelligently and autonomously.
Finegan is an avid Philadelphia sports fan. He enjoys spending time with his family, especially with his wife, Shannon, and new daughter, Adalyn. He spends his free time partaking in outdoor activities and home-improvement projects, as well as tinkering with the latest technologies.