简介
本书以Java 2的SCJP和SCJD认证考试为目标,内容涵盖了SCJP和SCJD核心考试的所有考试要点,尽可能详细地介绍了参加SCJP和SCJD的应试者以及其他高级用户所应该掌握的所有技能。 本书在介绍考试要点时针对每个考试目标,使用了大量的插图、表格、试验、测试等,使读者在牢固掌握知识点的同时,轻松地获得丰富的实践经验。 本书由具有丰富SCJP和SCJD考试经验的专家编写,是参加SCJP和SCJD的考试人员的必备考试教材。本书也是一本学习使用Java 2的很好的参考书,还可以作为一些疑难问题的速查手册。
目录
part i
the programmer's exam
language fundamentals
java programming language keywords (exam objective 4.4)
access modifiers
class, method, and variable modifiers
flow control
error handling
package control
primitives
variable keywords
void return type keyword
unused reserved words
literals and ranges of all primitive data types (exam objective 4.6)
range of primitive types
literal values for all primitive types
literal values for strings
array declaration, construction, and initialization(exam objective 1.1)
declaring an array
constructing an array
.initializing an array
using a variable or array element that is uninidalized and unassigned (exam objective 4.5)
primitive and object type instance variables
local (stack, automatic) primitives and objects
command-line arguments to main (exam objective 4.3)
exercise 1-1: creating a program that outputs command-line arguments
two-minute drill
q&a self test
self test answers
exercise answers
2 declarations and access control
declarations and modifiers (exam objective 1.2)
class dedarations and modifiers
exercise 2-1: creating an abstract superdass and concrete subdass
method and variable declarations and modifiers
declaration rules (exam objective 4.1)
source files, package declarations, and import statements
formatting the main() method
interface implementation (exam objective 4.2)
declaring an interface
declaring interface constants
implementing an interface
two-minute drill
q&a selftest
self test answers
3 operators and assignments
java operators (exam objective 5.1)
assignment operators
comparison operators
instanceof comparison
equality operators
arithmetic operators
shift operators
exercise 3-1: using shift operators
bitwise operators
bitwise complement operator
conditional operator
primitive casting
exercise 3-2: casting primitives
logical operators (exam objective 5.3)
short-circuit logical operators
logical operators (not short-circuit)
passing variables into methods (exam objective 5.4)
passing object reference variables
does java use pass-by-value semantics?
passing primitive variables
two-minute drill
q&a self test
self test answers
exercise answers
4 flow control, exceptions, and assertions
writing code using if and switch statements (exam objective 2.1)
if-else branching
switch statements
exercise 4-1: creating a switch-case statement
writing code using loops (exam objective 2.2)
using while loops
using do-while loops
using for loops
using break and continue in for loops
unlabeled statements
labeled statements
exercise 4-2: creating a labeled while loop
handling exceptions (exam objectives 2.3 and 2.4)
catching an exception using try and catch
using finally
propagating uncaught exceptions
exercise 4-3: propagating and catching an exception
defining exceptions
exception hierarchy
handling an entire class hierarchy of exceptions
exception matching
exception declaration and the public interface
rethrowing the same exception
exercise 4-4: creating an exception
working with the assertion mechanism(exam objectives 2.4 and 2.5)
assertions overview
enabling assertions
using assertions appropriately
two-minute drill
q&a selftest
self test answers
exercise answers
5 object orientation, overloading and overriding,constructors, and return types
benefits of encapsulation (exam objective 6. l)
is-a and has-a relationships
overridden and overloaded methods (exam objective 6.2)
overridden methods
overloaded methods
constructors and instantiation (exam objectives 1.3, 6.3, 6.2)
constructor basics
determine whether a default constructor w'dl be created
overloaded constructors
legal return types (exam objective 1.4)
return type declarations
returning a value
two-minute drill
q&a selftest
self test answers
6 java. lang-the hath class, strings, and wrappers
using the string class (exam objective 8.2)
strings are immutable objects
important facts about strings and memory
important methods in the string class
the stringbuffer class
important methods in the stringbuffer class
using the math class (exam objective 8.1)
methods of the java. lang. math class
exercise 6-1: using the math class
exercise 6-2: rounding random numbers
miscellaneous math class facts
using wrapper classes (exam objective 8.3)
an overview of the wrapper classes
creating wrapper objects
using wrapper conversion utilities
using equals0(exam objective 5.2)
an overview of == and the equals() method
two-minute drill
q&a self test
self test answers
exercise answers
7 objects and collections
overriding hashcode() and equals() (exam objective 9.2)
overriding equals()
overriding hashcode()
collections (exam objective 9.1)
so what do you do with a collection?
garbage collection (exam objectives 3.1, 3.2, 3.3)
overview of memory management and garbage collection
overview of java's garbage collector
writing code that explicitly makes objects eligible for collection
forcing garbage collection
cleaning up before garbage collection--the finalize() method
two-minute drill
q&a self test
self test answers
8 inner classes
inner classes
coding a "regular" inner class
referencing the inner or outer instance from within the inner class
method-local inner classes
anonymous inner classes
static nested classes
instantiating a static nested class
two-minute drill
q&a self test
self test answers
9 threads
defining, instantiating, and starting threads (exam objective 7.1)
defining a thread
instantiating a thread
starting a thread
preventing thread execution (exam objective 7.2)
sleeping
exercise 9-1: creating a thread and putting it to sleep
thread priorities and yield
synchronizing code (exam objective 7.3)
synchronization and locks
exercise 9-2: synchronizing a block of code
thread interaction (exam objective 7.4)
using notifyall() when many threads may be waiting
two-minute drill
q&a self test
self test answers
exercise answers
part ii
the developer's exam
10 introduction to the 3cid
understand the sun certified java developer exam process
how does it work?
are you a good candidate?
how much does it cost?
how long does it take?
what's the exam deliverable?
can i develop with an ide?
how is it graded?
what are the exam assessors thinking?
what are the exam assessors not thinking?
what's the assignment like?
overview of the developer exam chapters
key points summary
11 coding standards
use sun java coding standards
spacing standards
how to care for your curly braces
our comments about comments
declarations are fun
key points summary
12 clarity and maintainability
write clear and maintainable code
general programming considerations
follow basic oo design principles
don't reinvent the wheel
handle errors appropriately
key points summary
13 designing the graphical user interface
creating a usable and extensible gui
an overview of technical considerations for your gui
introduction to usability design
1. use-cases and the business function
2. principles of good screen design
3. choosing your widgets, jtable, and what army?
4. screen layout for your project
5. menus and navigation
6. messages, feedback, and dialog boxes
7. how to use colors in your gui
8. how to test your gui
key points summary
14 networking issues
understand networking issues
rmi and sockets
questions to ask yourself
key points summary
15 database issues
understand database issues
building a database
questions to ask yourself
16 exam documentation
understand the sun certified java developer exam documentation requirements
developer's documentation
end user documentation
javadoc and you
the developer's choices document
the return of comments and the versions file
key points summary
17 final submission and essay
preparing the final submission
file organization
the follow-up essay
key points summary
a about the cd
system requirements
learnkey additional training
installing and running masterexam
masterexam
electronic book
help
removing installation(s)
technical support
learnkey technical support
glossary
index
the programmer's exam
language fundamentals
java programming language keywords (exam objective 4.4)
access modifiers
class, method, and variable modifiers
flow control
error handling
package control
primitives
variable keywords
void return type keyword
unused reserved words
literals and ranges of all primitive data types (exam objective 4.6)
range of primitive types
literal values for all primitive types
literal values for strings
array declaration, construction, and initialization(exam objective 1.1)
declaring an array
constructing an array
.initializing an array
using a variable or array element that is uninidalized and unassigned (exam objective 4.5)
primitive and object type instance variables
local (stack, automatic) primitives and objects
command-line arguments to main (exam objective 4.3)
exercise 1-1: creating a program that outputs command-line arguments
two-minute drill
q&a self test
self test answers
exercise answers
2 declarations and access control
declarations and modifiers (exam objective 1.2)
class dedarations and modifiers
exercise 2-1: creating an abstract superdass and concrete subdass
method and variable declarations and modifiers
declaration rules (exam objective 4.1)
source files, package declarations, and import statements
formatting the main() method
interface implementation (exam objective 4.2)
declaring an interface
declaring interface constants
implementing an interface
two-minute drill
q&a selftest
self test answers
3 operators and assignments
java operators (exam objective 5.1)
assignment operators
comparison operators
instanceof comparison
equality operators
arithmetic operators
shift operators
exercise 3-1: using shift operators
bitwise operators
bitwise complement operator
conditional operator
primitive casting
exercise 3-2: casting primitives
logical operators (exam objective 5.3)
short-circuit logical operators
logical operators (not short-circuit)
passing variables into methods (exam objective 5.4)
passing object reference variables
does java use pass-by-value semantics?
passing primitive variables
two-minute drill
q&a self test
self test answers
exercise answers
4 flow control, exceptions, and assertions
writing code using if and switch statements (exam objective 2.1)
if-else branching
switch statements
exercise 4-1: creating a switch-case statement
writing code using loops (exam objective 2.2)
using while loops
using do-while loops
using for loops
using break and continue in for loops
unlabeled statements
labeled statements
exercise 4-2: creating a labeled while loop
handling exceptions (exam objectives 2.3 and 2.4)
catching an exception using try and catch
using finally
propagating uncaught exceptions
exercise 4-3: propagating and catching an exception
defining exceptions
exception hierarchy
handling an entire class hierarchy of exceptions
exception matching
exception declaration and the public interface
rethrowing the same exception
exercise 4-4: creating an exception
working with the assertion mechanism(exam objectives 2.4 and 2.5)
assertions overview
enabling assertions
using assertions appropriately
two-minute drill
q&a selftest
self test answers
exercise answers
5 object orientation, overloading and overriding,constructors, and return types
benefits of encapsulation (exam objective 6. l)
is-a and has-a relationships
overridden and overloaded methods (exam objective 6.2)
overridden methods
overloaded methods
constructors and instantiation (exam objectives 1.3, 6.3, 6.2)
constructor basics
determine whether a default constructor w'dl be created
overloaded constructors
legal return types (exam objective 1.4)
return type declarations
returning a value
two-minute drill
q&a selftest
self test answers
6 java. lang-the hath class, strings, and wrappers
using the string class (exam objective 8.2)
strings are immutable objects
important facts about strings and memory
important methods in the string class
the stringbuffer class
important methods in the stringbuffer class
using the math class (exam objective 8.1)
methods of the java. lang. math class
exercise 6-1: using the math class
exercise 6-2: rounding random numbers
miscellaneous math class facts
using wrapper classes (exam objective 8.3)
an overview of the wrapper classes
creating wrapper objects
using wrapper conversion utilities
using equals0(exam objective 5.2)
an overview of == and the equals() method
two-minute drill
q&a self test
self test answers
exercise answers
7 objects and collections
overriding hashcode() and equals() (exam objective 9.2)
overriding equals()
overriding hashcode()
collections (exam objective 9.1)
so what do you do with a collection?
garbage collection (exam objectives 3.1, 3.2, 3.3)
overview of memory management and garbage collection
overview of java's garbage collector
writing code that explicitly makes objects eligible for collection
forcing garbage collection
cleaning up before garbage collection--the finalize() method
two-minute drill
q&a self test
self test answers
8 inner classes
inner classes
coding a "regular" inner class
referencing the inner or outer instance from within the inner class
method-local inner classes
anonymous inner classes
static nested classes
instantiating a static nested class
two-minute drill
q&a self test
self test answers
9 threads
defining, instantiating, and starting threads (exam objective 7.1)
defining a thread
instantiating a thread
starting a thread
preventing thread execution (exam objective 7.2)
sleeping
exercise 9-1: creating a thread and putting it to sleep
thread priorities and yield
synchronizing code (exam objective 7.3)
synchronization and locks
exercise 9-2: synchronizing a block of code
thread interaction (exam objective 7.4)
using notifyall() when many threads may be waiting
two-minute drill
q&a self test
self test answers
exercise answers
part ii
the developer's exam
10 introduction to the 3cid
understand the sun certified java developer exam process
how does it work?
are you a good candidate?
how much does it cost?
how long does it take?
what's the exam deliverable?
can i develop with an ide?
how is it graded?
what are the exam assessors thinking?
what are the exam assessors not thinking?
what's the assignment like?
overview of the developer exam chapters
key points summary
11 coding standards
use sun java coding standards
spacing standards
how to care for your curly braces
our comments about comments
declarations are fun
key points summary
12 clarity and maintainability
write clear and maintainable code
general programming considerations
follow basic oo design principles
don't reinvent the wheel
handle errors appropriately
key points summary
13 designing the graphical user interface
creating a usable and extensible gui
an overview of technical considerations for your gui
introduction to usability design
1. use-cases and the business function
2. principles of good screen design
3. choosing your widgets, jtable, and what army?
4. screen layout for your project
5. menus and navigation
6. messages, feedback, and dialog boxes
7. how to use colors in your gui
8. how to test your gui
key points summary
14 networking issues
understand networking issues
rmi and sockets
questions to ask yourself
key points summary
15 database issues
understand database issues
building a database
questions to ask yourself
16 exam documentation
understand the sun certified java developer exam documentation requirements
developer's documentation
end user documentation
javadoc and you
the developer's choices document
the return of comments and the versions file
key points summary
17 final submission and essay
preparing the final submission
file organization
the follow-up essay
key points summary
a about the cd
system requirements
learnkey additional training
installing and running masterexam
masterexam
electronic book
help
removing installation(s)
technical support
learnkey technical support
glossary
index
Java 2学习指南
- 名称
- 类型
- 大小
光盘服务联系方式: 020-38250260 客服QQ:4006604884
云图客服:
用户发送的提问,这种方式就需要有位在线客服来回答用户的问题,这种 就属于对话式的,问题是这种提问是否需要用户登录才能提问
Video Player
×
Audio Player
×
pdf Player
×
亲爱的云图用户,
光盘内的文件都可以直接点击浏览哦
无需下载,在线查阅资料!