Data Types and Exceptions in Java

Start Free Preview

Buying via our links supports this free directory · Affiliate disclosure.
Course facts
  • Payment: Free Preview (Paid Upgrade)
  • Learning style: Self-paced, start anytime
  • Format: Text & Interactive
  • Video access: Streaming Only
  • Before you start: Introduction to Object-Oriented Programming in Java
DataCamp details
  • Chapters: 3
Created byDataCamp
Available onDataCamp

Course Details
Learning Style

Start Anytime

Level

Intermediate

Study Mode

100% Online

Duration

Short (< 10 Hours)

Languages
Audio Language

English

Outcomes
Certificate

Certificate of Completion

Price & Terms
Pricing Model

Free Preview (Paid Upgrade)

Technical
Content Medium

Text & Interactive

Video Access

Streaming Only

Specification
Access

Subscription

SKU: data-types-exceptions-java Category: Tags: , , Brand:

Model data with POJOs and wrapper classes, store objects in Java lists, sets, maps and queues, and handle exceptions with try/catch and logging.

At a glance
Duration4 hrs
LevelIntermediate
CertificateCertificate of Completion
LanguageEnglish
Taught byJim White
AccessSubscription
Add your review
Add to wishlistAdded to wishlistRemoved from wishlist 0
Add to compare

Knowing how Java handles data is part of writing clean, effective code. You model records as Plain Old Java Objects, treat primitive values as objects through wrapper classes, and keep related classes together in packages. You then store data in lists, sets, maps and queues, catch and throw exceptions, and add logging so that a program’s behavior can be traced later.

What You Will Achieve

  • Define a POJO that follows the rules and use wrapper classes safely when a value may be null
  • Choose between ArrayList, LinkedList, HashSet and HashMap to suit how a group of objects must be stored
  • Write try, catch and finally blocks and recognize when an exception is checked or a RuntimeException
  • Throw and rethrow exceptions and record what a program does with a logging API


Program Overview

Java Types, Wrappers, and Packages

Shows how simple objects model data, how primitive values become objects, and how classes are grouped.

  • Defining and using POJOs and the rules they follow
  • Wrapper classes and their behavior with null
  • Packages and the math classes, including java.math

Collections Framework Data Structures

Covers the built-in structures for storing groups of objects and how to pick the right one for a task.

  • Setting up collections with ArrayList and LinkedList
  • HashSet, Queue and HashMap
  • Autoboxing and the foreach loop
  • Choosing a data structure, Collections and Arrays

Exception Handling and Logging

Uses the exception object to respond to problems at run time and adds logging to record what an application does.

  • Try, catch and finally blocks
  • Errors versus exceptions, checked and runtime
  • Throwing, throws and rethrowing
  • Logging APIs

Certificate Awarded (Paid)


Job Outlook

Java data modeling, collections and error handling are part of everyday work on Java applications, including building new features and keeping existing code reliable and easy to maintain.


Our take

Good for: Java learners who already write their own classes and want to model data, use the standard collections and handle errors in real programs.

Keep in mind: Logging takes up two lessons at the close of the exceptions chapter, so expect a first look at logging APIs rather than an in-depth treatment.

Bottom line: A focused next step in Java that ties data modeling, the standard collections and exception handling together in one short course.

Frequently Asked Questions

What is a POJO in Java?

A POJO, or Plain Old Java Object, is a simple Java object used to model data. The lessons show how to define one, use it in code and follow the rules a POJO is expected to meet.

Which Java collection classes do the exercises use?

The exercises work with ArrayList, LinkedList, HashSet, Queue and HashMap. A separate lesson looks at choosing a data structure, and another works with Collections and Arrays.

How do wrapper classes relate to null values?

Wrapper classes let primitive data types be used as objects. One lesson looks specifically at how wrappers behave with null, alongside lessons on wrapper class facts and everyday use of wrappers in code.

Where does logging fit into the lessons?

Logging closes the exceptions chapter. After working through try, catch, finally and throwing exceptions, the lessons introduce logging and logging APIs as a way to track what an application is doing.

User Reviews

0.0 out of 5
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0

No reviews yet. Be the first to review this course.

There are no reviews yet.

Write your review

Reviews can only be posted by registered learners. Log in or create a free account, then you will return here to post.

×

    Report this page
    Data Types and Exceptions in Java
    Data Types and Exceptions in Java
    LiveTalent
    Logo
    Compare items
    • Total (0)
    Compare
    0