- Handling Exceptions in Java
Checked exceptions, unchecked exceptions, and Errors
Create a Java try-catch block and determine how exceptions alter normal program flow
Describe the advantages of Exception handling
Create and invoke a method that throws an exception
Recognize common exception classes (such as NullPointerException, , ArithmeticException, ArrayIndexOutOfBoundsException, ClassCastException)
Use Java try-catch and Java throw statements
Use catch, multi-catch, and finally clauses
Create custom exceptions and Auto-closeable resources
Use Autoclose resources with a try-with-resources statement
- Java I/O Fundamentals
Read and write data from the console
Use BufferedReader, BufferedWriter,
File, FileReader, FileWriter,
FileInputStream, FileOutputStream,
ObjectOutputStream, ObjectInputStream,
and PrintWriter in the java.io package.
- Java using Json Files
- Java Collections
This enables you to work with groups of objects; it is at the top of the collections hierarchy.
- The Java List Interface
This extends Collection and an instance of List stores an ordered collection of elements.
- The Java Set
This extends Collection to handle sets, which must contain unique elements.
- The Java SortedSet
This extends Set to handle sorted sets.
- The Java Map
This maps unique keys to values.
- Java NIO Class
Use Path interface to operate on file and directory paths
Use Files class to check, read, delete, copy, move, manage metadata of a file or directory
Use Stream API with NIO.2
- Use 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, and Duration
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, and TemporalUnit
Collections Streams and Filters
Iterate using forEach methods of Streams and List
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.function package such as Predicate, Consumer, Function, and Supplier
Java Stream API
Develop code to extract data from an object using peek() and map() methods
Search for data by using search methods of the Java Stream classes including findFirst, findAny, anyMatch, allMatch, noneMatch, etc.
Develop code that uses Stream data methods and calculation methods
Save results to a collection using the collect method and group/partition data using the Collectors class
Localization using Java
Read and set the locale by using the Locale object