Fast Track to Sun Certified Java Program by Ka Iok Tong

By Ka Iok Tong

If you want to benefit the recent good points in Java SE 5.0 and move the solar qualified Java Programmer improve examination (CX-310-056), then this publication is for you. It covers all of the Java SE 5.0 new positive factors required within the examination. you don't want to examine the prevailing positive factors that you simply already recognize. 117 evaluation questions and ridicule examination questions are included.
It contains the subsequent chapters: Autoboxing, Generics, For-each loop, Manipulating Collections, Variable Arity Parameters, Enum, Static Imports, Covariant go back kinds, Java I/O, Formatting and Parsing, getting ready for the examination.

Show description

Read or Download Fast Track to Sun Certified Java Program PDF

Best programming: programming languages books

Prototype and Scriptaculous: Taking the Pain out of JavaScript

This brief minimize demonstrates how you can use Prototype for quite a lot of projects, together with occasion dealing with, DOM processing, string and shape method, and Ajax communications. It explores Scriptaculous' visible results library, from pulsate to squish to fold and past. want interface elements? you will find shape autocompletion in addition to drag and drop aid.

Fast Track to Sun Certified Java Program

If you want to benefit the recent positive aspects in Java SE five. zero and go the sunlight qualified Java Programmer improve examination (CX-310-056), then this ebook is for you. It covers all of the Java SE five. zero new positive aspects required within the examination. you don't want to examine the prevailing positive factors that you just already comprehend. 117 evaluation questions and ridicule examination questions are integrated.

Extra resources for Fast Track to Sun Certified Java Program

Sample text

Add(new Rect(5, 3)); a. There will be a compilation error at line 1. b. There will be a compilation error at line 2. c. There will be a runtime error at line 2. d. It will compile and run just fine. 8. Assuming the same Shape and Rect classes as above, what is true about the following code? 1. 2. add(new Rect(5, 3)); a. There will be a compilation error at line 1. Generics 43 b. There will be a runtime error at line 1. c. There will be a compilation error at line 2. d. There will be a runtime error at line 2.

Summary If there is a certain relationship between the type of the formal parameters and/or the return of a method at compile time, you should introduce type variables to express the relationship, making the method generic. If such a relationship spans across several methods in a class, you should make the whole class generic. Type variables and parameterized types only exist at compile time, not at runtime. At runtime only their raw types exist. Therefore, you can't use instanceof on them, get their Class objects or create an array of them.

If the List above is {18, 5, 25, 2}, after being sorted, it will become ______________. 5. Can you use the method above to sort a Set or a Map? 6. The code below is trying to sort an array of Integers. Fill out the blanks: import _______________; ... ______(a); 7. In order to sort a List or an array of some Foo objects that don't implement Comparable, what do you need to do? 8. To perform binary search on a List or an array, what condition must be met first? 9. If an array is {2, 5, 13, 26} and you perform a binary search on it for the value of 18, what is the return value?

Download PDF sample

Rated 4.78 of 5 – based on 19 votes