OCA Java SE8 Programmer I Certification guide:
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Shelter Island, NY
Manning
[2017]
|
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | xxx, 674 Seiten Illustrationen, Diagramme |
ISBN: | 9781617293252 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV043659664 | ||
003 | DE-604 | ||
005 | 20161209 | ||
007 | t | ||
008 | 160707s2017 a||| |||| 00||| eng d | ||
020 | |a 9781617293252 |9 978-1-61729-325-2 | ||
035 | |a (OCoLC)958162778 | ||
035 | |a (DE-599)BVBBV043659664 | ||
040 | |a DE-604 |b ger |e rda | ||
041 | 0 | |a eng | |
049 | |a DE-83 |a DE-11 | ||
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
100 | 1 | |a Gupta, Mala |e Verfasser |4 aut | |
245 | 1 | 0 | |a OCA Java SE8 Programmer I Certification guide |c Mala Gupta |
264 | 1 | |a Shelter Island, NY |b Manning |c [2017] | |
264 | 4 | |c © 2017 | |
300 | |a xxx, 674 Seiten |b Illustrationen, Diagramme | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
650 | 0 | 7 | |a Java |g Programmiersprache |0 (DE-588)4401313-9 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Java |g Programmiersprache |0 (DE-588)4401313-9 |D s |
689 | 0 | |5 DE-604 | |
856 | 4 | 2 | |m HBZ Datenaustausch |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029073047&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-029073047 |
Datensatz im Suchindex
_version_ | 1804176413414129664 |
---|---|
adam_text | Titel: OCA Java SE8 Programmer I Certification guide
Autor: Gupta, Mala
Jahr: 2017
contents
preface xvii
acknowledgments xix
about this book xxi
about the author xxix
about the cover illustration xxx
Introduction 1
1 Disclaimer 2
2 Introduction to OCA Java SE 8 Programmer I
Certification 2
3 The importance of OCA Java SE 8 Programmer I
Certification 2
4 Comparing OCA Java exam versions 4
5 Next step: OCP Java SE 8 Programmer II (1Z0-809)
exam 8
6 Complete exam objectives, mapped to book chapters, and
readiness checklist 8
7 FAQs 10
FAQs on exam preparation 10 FAQs on taking the exam 18
8 The testing engine used in the exam 20
1 Java basics 22
1 1.1 The structures of a Java class and a source code file 23
Sfrwdwreq/aJawacZaw 24 amctwreamdco7M/%Mwmbq/^
a Java source code file 32
1.2 Executable Java applications 36
Executable Java classes versus non-executable Java classes 36
The main method 37 ¦ Run a Java program from the
command line 39
1.3 Java packages 41
The need for packages 42 * Defining classes in a package using
the package statement 42 • Using simple names with import
statements 45* Using packaged classes without using the
import statement 47 * Importing a single member versus all
members of a package 48 * The import statement doesn I import
the whole package tree 49 ¦ Importing classes from the default
package 50 * Static imports 50
1.4 Java access modifiers 51
Access modifiers 52 ¦ Public access modifier 53 ¦ Protected
access modifier 54 * Default access (package access) 57
private access modifier 61 • Access modifiers and
Java entities 62
1.5 Nonaccess modifiers 64
abstract modifier 65 ¦ final modifier 66 * static modifier 67
1.6 Features and components of Java 72
Valid features and components ofJava 72 * Irrelevant features
and components of Java 74
1.7 Summary 74
1.8 Review notes 75
1.9 Sample exam questions 79
1.10 Answers to sample exam questions 84
Working with Java data types 92
2.1 Primitive variables 93
Category: Boolean 95 ¦ Category: signed numeric 96
Category: character (unsigned integer) 102 ¦ Confusion with
the names of the primitive data types 104
2.2 Identifiers 105
Valid and invalid identifiers 105
2.3 Object reference variables 106
What are object reference variables? 107 ¦ Differentiating between
object reference variables and primitive variables 109
2.4 Operators 111
Assignment operators 112 ¦ Arithmetic operators 115
Relational operators 119 ¦ Logical operators 121
Operator precedence 123
2.5 Wrapper classes 125
Class hierarchy of wrapper classes 125 ¦ Creating objects of the
wrapper classes 125 ¦ Retrieving primitive values from the
wrapper classes 126 ¦ Parsing a string value to a
primitive type 127 * Difference between using the valueOf
method and constructors of wrapper classes 128 ¦ Comparing
objects of wrapper classes 128 ¦ Autoboxing and unboxing 130
2.6 Summary 132
2.7 Review notes 132
2.8 Sample exam questions 136
2.9 Answers to sample exam questions 140
3 Methods and encapsulation 147
3.1 Scope of variables 149
Local variables 149 ¦ Method parameters 151
Instance variables 152 • Class variables 153
Overlapping variable scopes 155
3.2 Object s life cycle 158
An object is born 159 ¦ Object is accessible 160
Object is inaccessible 161 ¦ Garbage collection 163
3.3 Create methods with arguments and return values 166
Return type of a method 168 ¦ Method parameters 169
Return statement 172
3.4 Create an overloaded method 174
Argument list 175 ¦ Return type 177 1 Access level 177
3.5 Constructors of a class 178
User-defined constructors 178 ¦ Default constructor 183
Overloaded constructors 185
3.6 Accessing object fields 188
What is an object field? 188 ¦ Read and write object fields 189
Calling methods on objects 192
3.7 Apply encapsulation principles to a class 194
Need for encapsulation 195 Apply encapsulation 195
3.8 Passing objects and primitives to methods 197
RassingpnmitiuestomefWs 198 7twa*Mgad%a#ng n%wxs
to methods 199
3.9 Summary 202
3.10 Review notes 203
3.11 Sample exam questions 207
3.12 Answers to sample exam questions 212
4 Selected classes from theJava API and arrays 221
4.1 Welcome to the world of the String class 223
Creating String objects 223 • The class Siring is immutable 227
Methods of the class String 230 • String objects and
operators 235 ¦ Determining equality of Strings 236
4.2 Mutable strings: StringBuilder 239
The StringBuilder class is mutable 239 ¦ Creating StringBuilder
objects 240 ¦ Methods of class StringBuilder 241 * A quick
note on the class StringBuffer 247
4.3 Arrays 247
What is an array ? 248 ¦ Array declaration 249
Array allocation 250 ¦ Array initialization 252
Combining array declaration, allocation, and initialization 254
Asymmetrical multidimensional arrays 255 ¦ Arrays of type
interface, abstract class, and class Object 256 * Members of
an array 258
4.4 ArrayList 258
Creating an ArrayList 259 • Adding elements to an
ArrayList 261 • Accessing elements of an ArrayList 263
Modifying the elements of an ArrayList 265 • Deleting the
elements of an ArrayList 266 • Other methods of ArrayList 267
4.5 Comparing objects for equality 273
The method equals in the class java.lang.Object 273
Comparing objects of a user-defined class; 273 Incorrect
method signature of the equals method 275 Contract of the
equals method 276
4.6 Working with calendar data 278
LocalDate 279 - LocalTime 282 - LocalDateTime 285
Period 286 ¦ DateTimeFormatter 291
4.7 Summary 297
4.8 Review notes 299
4.9 Sample exam questions 309
4.10 Answers to sample exam questions 313
5 Flow control 322
5.1 The if, if-else, and ternary constructs 324
The if construct and its flavors 324 « Missing else blocks 328
Implications of the presence and absence of {j in if-else
constructs 328 ¦ Appropriate versus inappropriate expressions
passed as arguments to an if statement 331 ¦ Nested if
constructs 332 • Ternary construct 334
5.2 The switch statement 338
Create and use a switch statement 339 * Comparing a switch
statement with multiple if-else constructs 339 ¦ Arguments
passed to a switch statement 341 * Values passed to the label
case of a switch statement 343 ¦ Use of break statements within
a switch statement 345
5.3 The for loop 346
Initialization block 348 ¦ Termination condition 349
The update clause 349 Optional parts of a for statement 350
Nested for loop 351
5.4 The enhanced for loop 352
Iteration with enhanced for loop 352 ¦ Limitations of the
enhanced for loop 355 ¦ Nested enhanced for loop 356
5.5 The while and do-while loops 358
The while loop 358 ¦ The do-while loop 360
while and do-while block, expression, and nesting rules 362
5.6 Comparing loop constructs 362
Comparing do-while and while loops 362 ¦ Comparing for and
enhanced for loops 363 * Comparing for and while loops 364
5.7 Loop statements: break and continue 364
The break statement 364 ¦ The continue statement 366
Labeled statements 367
5.8 Summary 368
5.9 Review notes 369
5.10 Sample exam questions 372
5.11 Answers to sample exam questions 377
6 Working with inheritance 384
6.1 Inheritance with classes 385
The need to inherit classes 385 ¦ Benefits 387 ¦ A derived class
contains within it an object of its base class 390 ¦ Which base class
members are inherited by a derived class ? 391 ¦ Which base class
members aren t inherited by a derived class? 391 ¦ Derived classes
can define additional properties and behaviors 391 ¦ Abstract base
class versus concrete base class 392
6.2 Use interfaces 394
Need for using interfaces 396 • Defining interfaces 398
Types of methods in an interface 401 ¦ Implementing a single
interface 405 ¦ A class can t extend multiple classes 407
A class can implement multiple interfaces 408 • Extending
interfaces 411 • Modifying existing methods of an interface 414
Properties of members of an interface 417
6.3 Reference variable and object types 418
Using a variable of the derived class to access its own object 418
Using a variable of a superclass to access an object of a derived
class 419 ¦ Using a variable of an implemented interface to access
a derived class object 420 ¦ The need for accessing an object using
the variables of its base class or implemented interfaces 421
6.4 Casting 424
How to cast a variable to another type 424
Need for casting 426
6.5 Use this and super to access objects and constructors 427
Object reference: this 427 ¦ Object reference: super 430
6.6 Polymorphism 434
Polymorphism with classes 434 ¦ Binding of variables and
methods at compile time and runtime 439 ¦ Polymorphism
with interfaces 441
6.7 Simple lambda expressions 446
Comparing passing values with passing code to methods 446
Syntax of lambda expressions 449 ¦ Interface Predicate 450
6.8 Summary 452
6.9 Review notes 453
6.10 Sample exam questions 456
6.11 Answers to sample exam questions 461
7 Exception handling 469
7.1 Exceptions in Java 470
A taste of exceptions 470¦ Why handle exceptions
separately ? 473 ¦ Does exception handling offer any
other benefits ? 474
7.2 Categories of exceptions 475
Identifying exception categories 476 Class hierarchy of
exception classes 476 ¦ Checked exceptions 477
Runtime exceptions 478 Errors 478
7.3 Creating a method that throws an exception 479
Create a method that throws a checked exception 480
Handle-or-declare rule 481 ¦ Creating a method that throws
runtime exceptions or errors 481 ¦ A method can declare to throw
all types of exceptions, even if it doesn t 482
7.4 What happens when an exception is thrown? 483
Creating try-catch-finally blocks 485 ¦ Using a method that throws
a checked exception 490 ¦ Using a method that throws a runtime
exception 491 ¦ Using a method that throws an error 493
Will a finally block execute even if the catch block defines a return
statement? 493 ¦ What happens if both a catch and afinally block
define return statements ? 494 ¦ What happens if a finally block
modifies the value returned from a catch block ? 495 1 Can a try
block be followed only by a finally block? 496 * Does the order of the
exceptions caught in the catch blocks matter? 497 9 Can I rethrow
an exception or the error I catch ? 499 ¦ Can I declare my methods
to throw a checked exception instead of handling it? 500 ¦ lean
create nested loops, so can I create nested try-catch blocks too ? 500
Should I handle errors ? 502
7.5 Common exception classes and categories 503
ArraylndexOutOfBoundsException and
IndexOutOfBoundsException 504 ¦ ClassCastException 505
IllegalArgumentException 507 * NullPointerException 508
ArithmeticException 511 NumberFormatException 514
ExceptionlnlnitializerError 516 ¦ StackOverflowError 518
NoClassDefFoundError 519 * OutOfMemoryError 519
7.6 Summary 520
7.7 Review notes 520
7.8 Sample exam questions 526
7.9 Answers to sample exam questions 530
8 Full mock exam 539
8.1 Mock exam 539
8.2 Answers to mock exam questions 574
appendix Answers to Twist in the Tale exercises 641
index 659
|
any_adam_object | 1 |
author | Gupta, Mala |
author_facet | Gupta, Mala |
author_role | aut |
author_sort | Gupta, Mala |
author_variant | m g mg |
building | Verbundindex |
bvnumber | BV043659664 |
classification_rvk | ST 250 |
ctrlnum | (OCoLC)958162778 (DE-599)BVBBV043659664 |
discipline | Informatik |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01217nam a2200325 c 4500</leader><controlfield tag="001">BV043659664</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20161209 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">160707s2017 a||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781617293252</subfield><subfield code="9">978-1-61729-325-2</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)958162778</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV043659664</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rda</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-83</subfield><subfield code="a">DE-11</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Gupta, Mala</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">OCA Java SE8 Programmer I Certification guide</subfield><subfield code="c">Mala Gupta</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Shelter Island, NY</subfield><subfield code="b">Manning</subfield><subfield code="c">[2017]</subfield></datafield><datafield tag="264" ind1=" " ind2="4"><subfield code="c">© 2017</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">xxx, 674 Seiten</subfield><subfield code="b">Illustrationen, Diagramme</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Java</subfield><subfield code="g">Programmiersprache</subfield><subfield code="0">(DE-588)4401313-9</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Java</subfield><subfield code="g">Programmiersprache</subfield><subfield code="0">(DE-588)4401313-9</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">HBZ Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029073047&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-029073047</subfield></datafield></record></collection> |
id | DE-604.BV043659664 |
illustrated | Illustrated |
indexdate | 2024-07-10T07:31:47Z |
institution | BVB |
isbn | 9781617293252 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-029073047 |
oclc_num | 958162778 |
open_access_boolean | |
owner | DE-83 DE-11 |
owner_facet | DE-83 DE-11 |
physical | xxx, 674 Seiten Illustrationen, Diagramme |
publishDate | 2017 |
publishDateSearch | 2017 |
publishDateSort | 2017 |
publisher | Manning |
record_format | marc |
spelling | Gupta, Mala Verfasser aut OCA Java SE8 Programmer I Certification guide Mala Gupta Shelter Island, NY Manning [2017] © 2017 xxx, 674 Seiten Illustrationen, Diagramme txt rdacontent n rdamedia nc rdacarrier Java Programmiersprache (DE-588)4401313-9 gnd rswk-swf Java Programmiersprache (DE-588)4401313-9 s DE-604 HBZ Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029073047&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Gupta, Mala OCA Java SE8 Programmer I Certification guide Java Programmiersprache (DE-588)4401313-9 gnd |
subject_GND | (DE-588)4401313-9 |
title | OCA Java SE8 Programmer I Certification guide |
title_auth | OCA Java SE8 Programmer I Certification guide |
title_exact_search | OCA Java SE8 Programmer I Certification guide |
title_full | OCA Java SE8 Programmer I Certification guide Mala Gupta |
title_fullStr | OCA Java SE8 Programmer I Certification guide Mala Gupta |
title_full_unstemmed | OCA Java SE8 Programmer I Certification guide Mala Gupta |
title_short | OCA Java SE8 Programmer I Certification guide |
title_sort | oca java se8 programmer i certification guide |
topic | Java Programmiersprache (DE-588)4401313-9 gnd |
topic_facet | Java Programmiersprache |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029073047&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT guptamala ocajavase8programmericertificationguide |