Coursera Logo

University of Pennsylvania - Inheritance and Data Structures in Java 

  • Offered byCoursera

Inheritance and Data Structures in Java


21 hours

Start from

Start Now

Total fee


Mode of learning


Difficulty level


Official Website

Go to Website External Link Icon



Inheritance and Data Structures in Java

  • Shareable Certificate Earn a Certificate upon completion
  • 100% online Start instantly and learn at your own schedule.
  • Course 4 of 4 in the Introduction to Programming with Python and Java Specialization
  • Flexible deadlines Reset deadlines in accordance to your schedule.
  • Beginner Level High school or college math. 'Introduction to Java and Object-Oriented Programming' Coursera course.
  • Approx. 21 hours to complete
  • English Subtitles: English
Read more
Details Icon

Inheritance and Data Structures in Java
Course details

Skills you will learn
More about this course
  • This course provides a comprehensive look at Java inheritance, including access modifiers and overriding methods. Students are introduced to abstract classes, and will learn how to read and write to files, use regular expressions for parsing text, and how to leverage complex data structures like collections and maps.
  • Additionally, this course offers strategies for catching errors and debugging code, including an overview of Eclipse?s debugging tool.

Inheritance and Data Structures in Java

Module 1 : Inheritance, Polymorphism Using Overriding, & Access Modifiers

What to expect from this Course

About the Instructor : Brandon Krakowsky

How to submit assignments in Codio

Module Introduction

Superclasses and subclasses

A review of method signatures

How to override a method

Why override a method?

Overriding toString

A review of overriding equals

Overriding equals for JUnit tests

Overriding constructors

Calling an overridden method

Why call an overridden method?

Restricting scope

Public vs. protected vs. default vs. private

Which access modifier should I use?

Getters & setters and encapsulation

Coding Demonstration : Animals management project

Course Layout & Syllabus

Tips to succeed in this course

Navigating Assignments using Codio

Module 1 Resources

How to require @Override in Eclipse

Summary : Overloading vs. Overriding

Quiz 1: Inheritance & Polymorphism - Overriding

Quiz 2 : Access Modifiers

Module 2 : Abstract Classes & Debugging

Module Introduction

Abstract methods

Declaring abstract classes

Extending abstract classes

Combining abstract & non-abstract methods

Why have abstract classes?

Common syntax errors with subclasses

Possible solutions to the syntax problem

Solution to syntax problem using abstract class

Code Along : Pet project

What is debugging?

Debugging support in Eclipse

Coding Demonstration : Debugging Person class - IndexOutOfBoundsException, & NullPointerException

Coding Demonstration : Debugging syllable counter - Using Step Into, Step Over, & Step Return

Module 2 Resources

Setting breakpoints

Starting the debugger

Controlling program execution

Evaluating variables in the debugger

Returning to the Java perspective

Quiz 3 : Abstract Classes

Quiz 4 : More with Abstract Classes & Debugging

Module 3 : File I/O & Exceptions

Module Introduction

Why Java I/O is difficult


How to do I/O

Opening & reading a file, using FileReader & BufferedReader

Opening & reading a file, using Scanner

File writing, using FileWriter & PrintWriter

File writing, using FileWriter & BufferedWriter

File types

Errors vs. exceptions

What to do about errors & exceptions

Dealing with exceptions

The try-catch statement


Two ways to deal with exceptions

Using Scanner, & FileNotFoundException

Using FileReader & BufferedReader, & FileNotFoundException, IOException

Using FileWriter & PrintWriter, & IOException

Module 3 Resources

Different kinds of built-in exceptions

Different kinds of built-in errors

Quiz 5 : File I/O

Quiz 6 : More with File I/O & Exceptions

Module 4 : Collections, Maps, & Regular Expressions

Module Introduction

About the Collections Framework

Types of collections & ?collection-like? things (maps)

Methods in the collection interface


List interface

Deque interface

Set interface

Map interface

General rules for selecting an implementation


Coding Demonstration : Remove range from a list using an Iterator

Coding Demonstration : Add stars to a list using ArrayList

Coding Demonstration : Count words using a HashMap

Coding Demonstration : Count unique words using a HashSet

Coding Demonstration : Set food toppings using a HashMap

What is a regular expression?

Coding Demonstration : Split a String using str.split()

Coding Demonstration : Replace all with a pattern using str.replaceAll()

Coding Demonstration : Get parts of a phone number using groups and character classes

Coding Demonstration : Replace an area code using str.replaceFirst()

Module 4 Resources

Sorting & searching collections

Arrays class

Quiz 7 : Collections/Maps

Quiz 8 : More with Collections/Maps & Regular Expressions

Inheritance and Data Structures in Java
Admission Process

    Important Dates

    May 25, 2024
    Course Commencement Date

    Other courses offered by Coursera

    – / –
    Start Now
    – / –
    – / –
    27 hoursCertificate
    – / –
    Start Now
    – / –
    Start Now
    View Other 6710 CoursesRight Arrow Icon

    Inheritance and Data Structures in Java
    Students Ratings & Reviews

    Verified Icon1 Rating
    Nikhil Kumar
    Inheritance and Data Structures in Java
    Other: This is really a good course that will help me a lot to understand the deep concept of Inheritance and how to use Data Structures present in the collections framework.
    Reviewed on 28 May 2021Read More
    Thumbs Up IconThumbs Down Icon
    View All 1 ReviewsRight Arrow Icon

    Inheritance and Data Structures in Java

    Student Forum

    chatAnything you would want to ask experts?
    Write here...