Normal view MARC view ISBD view

SCJP Sun certified programmer for Java 5 : study guide (exam 310-055) /

By: Sierra, Kathy
Title By: Bates, Bert
Material type: BookPublisher: Emeryville, CA : McGraw-Hill/Osborne, c2006.Description: xxxviii, 825 p. : ill., ports., +1 CD-ROM ; 24 cm.ISBN: 9780072253610Other title: SCJP Sun certified programmer for Java five : study guide (exam 310-055).Subject(s): Electronic data processing personnel -- Certification | Java (Computer program language) -- Examinations -- Study guidesDDC classification: 005.133 SI SC Online resources: Location Map
Summary:
Get the book that shows you not only what to study, but "how" to study. The only classroom-based integrated study system for professional certification gives you complete coverage of all objectives for the Sun Certified Programmer for Java 5 exam, hundreds of practice exam questions, and hands-on exercises. The CD-ROM features full practice exam software plus an adaptive test engine.
Tags from this library: No tags from this library for this title. Log in to add tags.
    average rating: 0.0 (0 votes)
Item type Home library Call number Status Date due Barcode Item holds
REGULAR University of Wollongong in Dubai
Main Collection
005.133 SI SC (Browse shelf) Available T0033040
Total holds: 0
, Shelving location: Main Collection Close shelf browser
005.133 SI HE Head first Java / 005.133 SI HE Head first Java / 005.133 SI LI Linux in a nutshell / 005.133 SI SC SCJP Sun certified programmer for Java 5 : 005.133 SK CS C# in depth 005.133 SK LE Learning PHP : 005.133 SK PH PHP cookbook

+1 CD-ROM. Includes index.

About the Contributors ix Acknowledgments xxi Preface xxiii Introduction xxv 1 Declarations and Access Control 1 Java Refresher 2 Identifiers & JavaBeans (Objectives 1.3 and 1.4) 4 Legal Identifiers 5 Sun's Java Code Conventions 6 JavaBeans Standards 8 Declare Classes (Exam Objective 1.1) 10 Source File Declaration Rules 11 Class Declarations and Modifiers 12 Exercise 1-1 Creating an Abstract Superclass and Concrete Subclass 18 Declare Interfaces (Exam Objectives 1.1 and 1.2) 19 Declaring an Interface 19 Declaring Interface Constants 22 Declare Class Members (Objectives 1.3 and 1.4) 24 Access Modifiers 24 Nonaccess Member Modifiers 39 Constructor Declarations 47 Variable Declarations 49 Declaring Enums 60 Two-Minute Drill 68 Q&A Self Test 74 Self Test Answers 77 2 Object Orientation 81 Encapsulation (Exam Objective 5.1) 82 Inheritance, Is-A, Has-A (Exam Objective 5.5) 86 IS-A 90 HAS-A 92 Polymorphism (Exam Objective 5.2) 94 Overriding / Overloading (Exam Objectives 1.5 and 5.4) 99 Overridden Methods 99 Overloaded Methods 105 Reference Variable Casting (Objective 5.2) 112 Implementing an Interface (Exam Objective 1.2) 116 Legal Return Types (Exam Objective 1.5) 122 Return Type Declarations 122 Returning a Value 124 Constructors and Instantiation (Exam Objectives 1.6 and 5.4) 126 Determine Whether a Default Constructor Will Be Created 131 Overloaded Constructors 135 Statics (Exam Objective 1.3) 141 Static Variables and Methods 141 Coupling and Cohesion (Exam Objective 5.1) 147 Two-Minute Drill 153 Q&A Self Test 158 Self Test Answers 164 3 Assignments 173 Stack and Heap-Quick Review 174 Literals, Assignments, and Variables (Exam Objectives 1.3 and 7.6) 176 Literal Values for All Primitive Types 176 Assignment Operators 180 Exercise 3-1 Casting Primitives 185 Using a Variable or Array Element That Is Uninitialized and Unassigned 193 Local (Stack, Automatic) Primitives and Objects 197 Passing Variables into Methods (Exam Objective 7.3) 203 Passing Object Reference Variables 203 Does Java Use Pass-By-Value Semantics? 204 Passing Primitive Variables 205 Array Declaration, Construction, and Initialization (Exam Objective 1.3) 209 Declaring an Array 209 Constructing an Array 210 Initializing an Array 214 Initialization Blocks 224 Using Wrapper Classes and Boxing (Exam Objective 3.1) 227 An Overview of the Wrapper Classes 228 Creating Wrapper Objects 229 Using Wrapper Conversion Utilities 230 Autoboxing 234 Overloading (Exam Objectives 1.5 and 5.4) 237 Garbage Collection (Exam Objective 7.4) 244 Overview of Memory Management and Garbage Collection 244 Overview of Java's Garbage Collector 245 Writing Code That Explicitly Makes Objects Eligible for Collection 247 Exercise 3-2 GC Analysis 252 Two-Minute Drill 255 Q&A Self Test 259 Self Test Answers 266 4 Operators 275 Java Operators (Exam Objective 7.6) 276 Assignment Operators 276 Relational Operators 278 instanceof Comparison 283 Arithmetic Operators 286 Conditional Operator 292 Logical Operators 293 Two-Minute Drill 299 Q&A Self Test 301 Self Test Answers 307 5 Flow Control, Exceptions, and Assertions 315 if and switch Statements (Exam Objective 2.1) 316 if-else Branching 317 switch Statements 322 Exercise 5-1 Creating a switch-case Statement 330 Loops and Iterators (Exam Objective 2.2) 331 Using while Loops 331 Using do Loops 332 Using for Loops 333 Using break and continue 340 Unlabeled Statements 341 Labeled Statements 342 Exercise 5-2 Creating a Labeled while Loop 344 Handling Exceptions (Exam Objectives 2.4 and 2.5) 344 Catching an Exception Using try and catch 345 Using finally 347 Propagating Uncaught Exceptions 350 Exercise 5-3 Propagating and Catching an Exception 352 Defining Exceptions 353 Exception Hierarchy 354 Handling an Entire Class Hierarchy of Exceptions 356 Exception Matching 357 Exception Declaration and the Public Interface 359 Rethrowing the Same Exception 364 Exercise 5-4 Creating an Exception 365 Common Exceptions and Errors (Exam Objective 2.6) 366 Working with the Assertion Mechanism (Exam Objective 2.3) 371 Assertions Overview 372 Enabling Assertions 375 Using Assertions Appropriately 380 Two-Minute Drill 385 Q&A Self Test 389 Self Test Answers 399 6 Strings, I/O, Formatting, and Parsing 411 String, StringBuilder, and StringBuffer (Exam Objective 3.1) 412 The String Class 412 Important Facts About Strings and Memory 419 Important Methods in the String Class 420 The StringBuffer and StringBuilder Classes 424 Important Methods in the StringBuffer and StringBuilder Classes 426 File Navigation and I/O (Exam Objective 3.2) 429 Serialization (Exam Objective 3.3) 443 Dates, Numbers, and Currency (Exam Objective 3.4) 457 Working with Dates, Numbers, and Currencies 458 Parsing, Tokenizing, and Formatting (Exam Objective 3.5) 471 A Search Tutorial 472 Locating Data via Pattern Matching 482 Tokenizing 485 Formatting with printf() and format() 489 Two-Minute Drill 494 Q&A Self Test 498 Self Test Answers 508 7 Generics and Collections 521 Overriding hashCode() and equals() (Objective 6.2) 522 Overriding equals() 524 Overriding hashCode() 529 Collections (Exam Objective 6.1) 536 So What Do You Do with a Collection? 536 Using the Collections Framework (Objective 6.5) 546 ArrayList Basics 547 Autoboxing with Collections 548 Sorting Collections and Arrays 548 Generic Types (Objectives 6.3 and 6.4) 570 Generics and Legacy Code 575 Mixing Generic and Non-generic Collections 576 Polymorphism and Generics 582 Generic Methods 584 Generic Declarations 597 Two-Minute Drill 606 Q&A Self Test 611 Self Test Answers 622 8 Inner Classes 635 Inner Classes 637 Coding a "Regular" Inner Class 638 Referencing the Inner or Outer Instance from Within the Inner Class 642 Method-Local Inner Classes 644 What a Method-Local Inner Object Can and Can't Do 645 Anonymous Inner Classes 647 Plain-Old Anonymous Inner Classes, Flavor One 647 Plain-Old Anonymous Inner Classes, Flavor Two 651 Argument-Defined Anonymous Inner Class 652 Static Nested Classes 654 Instantiating and Using Static Nested Classes 655 Two-Minute Drill 657 Q&A Self Test 659 Self Test Answers 665 9 Threads 673 Defining, Instantiating, and Starting Threads (Exam Objective 4.1) 674 Defining a Thread 677 Instantiating a Thread 678 Starting a Thread 681 Thread States and Transitions (Exam Objective 4.2) 690 Thread States 690 Preventing Thread Execution 692 Sleeping 693 Exercise 9-1 Creating a Thread and Putting It to Sleep 695 Thread Priorities and yield() 696 Synchronizing Code (Exam Objective 4.3) 700 Synchronization and Locks 707 Exercise 9-2 Synchronizing a Block of Code 710 Thread Deadlock 717 Thread Interaction (Exam Objective 4.4) 718 Using notifyAll() When Many Threads May Be Waiting 724 Two-Minute Drill 730 Q&A Self Test 733 Self Test Answers 744 Exercise Answers 758 10 Development 759 Using the javac and java Commands (Exam Objectives 7.1, 7.2, 7.5) 760 Compiling with javac 760 Launching Applications with java 763 Searching for Other Classes 766 JAR Files (Exam Objective 7.5) 772 JAR Files and Searching 773 Using Static Imports

(Exam Objective 7.1) 776 Static Imports 776 Two-Minute Drill 779 Q&A Self Test 781 Self Test Answers 789 A About the CD 799 System Requirements 800 Installing and Running Master Exam 800 Master Exam 800 Electronic Book 801 Help 801 Removing Installation(s) 801 Technical Support 801 LearnKey Technical Support 801 Index 803.

Get the book that shows you not only what to study, but "how" to study. The only classroom-based integrated study system for professional certification gives you complete coverage of all objectives for the Sun Certified Programmer for Java 5 exam, hundreds of practice exam questions, and hands-on exercises. The CD-ROM features full practice exam software plus an adaptive test engine.

Powered by Koha