Java Class Design
- Implement encapsulation
- Implement inheritance including visibility modifiers and composition
- Implement polymorphism
- Override
hashCode,equals, andtoStringmethods fromObjectclass - Create and use singleton classes and immutable classes
- Develop code that uses
statickeyword on initialize blocks, variables, methods, and classes
Advanced Java Class Design
- Develop code that uses abstract classes and methods
- Develop code that uses
finalkeyword - Create inner classes including static inner class, local class, nested class, and anonymous inner class
- Use enumerated types including methods, and constructors in an
enumtype - Develop code that declares, implements and/or extends interfaces and use the
@Overrideannotation. - Create and use Lambda expressions
Generics and Collections
- Create and use a generic class
- Create and use
ArrayList,TreeSet,TreeMap, andArrayDequeobjects - Use
java.util.Comparatorandjava.lang.Comparableinterfaces - Collections Streams and Filters
- Iterate using
forEachmethods ofStreamandList - Describe Stream interface and Stream pipeline
- Filter a collection by using lambda expressions
- Use method references with Streams
Lambda Built-in Functional Interfaces
- Use the built-in interfaces included in the
java.util.functionpackage such asPredicate,Consumer,Function, andSupplier - Develop code that uses primitive versions of functional interfaces
- Develop code that uses binary versions of functional interfaces
- Develop code that uses the
UnaryOperatorinterface
Java Stream API
- Develop code to extract data from an object using
peek()andmap()methods including primitive versions of themap()method - Search for data by using search methods of the
Streamclasses includingfindFirst,findAny,anyMatch,allMatch,noneMatch - Develop code that uses the
Optionalclass - Develop code that uses
Streamdata methods and calculation methods - Sort a collection using Stream API
- Save results to a collection using the collect method and group/partition data
using the
Collectorsclass - Use of
merge()andflatMap()methods of the Stream API
Exceptions and Assertions
- Use
try-catchandthrowstatements - Use catch, multi-catch, and finally clauses
- Use Autoclose resources with a try-with-resources statement
- Create custom exceptions and Auto-closeable resources
- Test invariants by using assertions
Use Java SE 8 Date/Time API
- Create and manage date-based and time-based events including a combination of
date and time into a single object using
LocalDate,LocalTime,LocalDateTime,Instant,Period, andDuration - Work with dates and times across timezones and manage changes resulting from daylight savings including Format date and times values
- Define and create and manage date-based and time-based events using
Instant,Period,Duration, andTemporalUnit
Java I/O Fundamentals
- Read and write data from the console
- Use
BufferedReader,BufferedWriter,File,FileReader,FileWriter,FileInputStream,FileOutputStream,ObjectOutputStream,ObjectInputStream, andPrintWriterin thejava.iopackage.
Java File I/O (NIO.2)
- Use
Pathinterface to operate on file and directory paths - Use
Fileclass to check, read, delete, copy, move, manage metadata of a file or directory - Use Stream API with NIO.2
Java Concurrency
- Create worker threads using
Runnable,Callableand use anExecutorServiceto concurrently execute tasks - Identify potential threading problems among deadlock, starvation, livelock, and race conditions
- Use
synchronizedkeyword andjava.util.concurrent.atomicpackage to control the order of thread execution - Use
java.util.concurrentcollections and classes includingCyclicBarrierandCopyOnWriteArrayList - Use parallel Fork/Join Framework
- Use parallel Streams including reduction, decomposition, merging processes, pipelines and performance.
Building Database Applications with JDBC
- Describe the interfaces that make up the core of the JDBC API including the
Driver,Connection,Statement, andResultSetinterfaces and their relationship to provider implementations - Identify the components required to connect to a database using the
DriverManagerclass including the JDBC URL - Submit queries and read results from the database including creating statements, returning result sets, iterating through the results, and properly closing result sets, statements, and connections
Localization
- Describe the advantages of localizing an application
- Read and set the locale by using the
Localeobject - Create and read a
Propertiesfile - Build a resource bundle for each locale and load a resource bundle in an application