Get Programming with Java
Peggy Fisher
  • MEAP began September 2018
  • Publication in Early 2021 (estimated)
  • ISBN 9781617295140
  • 525 pages (estimated)
  • printed in black & white
We regret that Manning Publications will not be publishing this title.

I wish my first Java book had read like this one!

Kelvin Johnson
In Get Programming with Java, experienced instructor Peggy Fisher makes learning the Java programming language fast, easy, and fun! Using short, focused lessons with quick-check questions, “try this” exercises that let you practice what you’ve learned, and six capstone projects, you’ll quickly master the basics of object-oriented programming in Java!

About the Technology

Easy to use and platform-independent, Java is the programming language behind millions of networked applications, with an estimated 3 billion devices currently running Java apps. Stable, robust, and ubiquitous, Java has been the trusted solution for large-scale enterprise applications since its inception more than twenty years ago. It’s also the tool of choice for Android apps, web servers, games, and embedded programs for small devices.

About the book

Get Programming with Java teaches you to write programs in the Java language, starting from the most basic building blocks. In her relatable and personable style, author Peggy Fisher begins by helping you set up a Java programming environment on your computer. Once you’re up and running, you’ll start working with the foundations of Java and object-oriented programming, including classes and objects. Always practical and clear, this carefully-designed tutorial swaps the usual heavy-handed theory for concrete examples and easy-to-follow scenarios.

And you’ll use everything you learn immediately! Quick, concise lessons and “try this” exercises give you practical, hands-on experience with inheritance, file processing, collections, design patterns, and other vital Java principles. At the end of each set of lessons you’ll complete a capstone project to lock in what you’ve learned. This fun guide with a course-like feel will have you programming in Java quickly, confidently, and proficiently.
Table of Contents detailed table of contents

Unit 0: Getting Started with Java

Lesson 1 Get Started

1.1 What is an Integrated Development Environment

1.2 Install the Java Development Kit (JDK)

1.3 How to Install NetBeans

1.4 NetBeans Environment Setup

1.5 Write a Java Program Using NetBeans

1.6 Summary

Unit 1: Classes and Objects

Lesson 2 Creating Classes

2.1 Defining a Class

2.2 Add Class Behaviors using Methods

2.3 Create objects based on the class definition

2.4 Summary

Lesson 3 Visibility Modifiers

3.1 Packages

3.2 Visibility Modifiers Explained

3.3 Visibility Modifiers in Action

3.4 Summary

Lesson 4 Adding Methods

4.1 Method Signatures

4.1.1 Visibility Modifier

4.1.2 Return Type

4.1.3 Method Naming Conventions

4.1.4 Parameter List

4.1.5 Method Body

4.2 Adding Getter and Setter Methods

4.3 Adding More Methods

4.4 Summary

Lesson 5 Adding Loops

5.1 Adding a Count Controlled Loop

5.2 The While Loop

5.3 The Do…​While Loop

5.4 The for-each Loop

5.5 Summary

Lesson 6 Arrays and ArrayLists

6.1 Creating arrays

6.2 Access and modify elements in an array

6.3 Manipulating arrays using the Arrays class

6.4 Creating ArrayLists

6.5 Accessing and modifying elements in an ArrayList

6.6 Summary

Lesson 7 Capstone 1

7.1 Flowchart the Solution

7.2 Create an Employee Class

7.3 Add getter and setter methods to the Employee class

7.4 Add methods to the Employee class

7.5 Wrap It Up

7.6 Summary

Unit 2: Application Programming Interface (API)

Lesson 8 Standard Java API

8.1 How to read the API documentation

8.2 Scanner class

8.3 Wrapper classes

8.3.1 Wrapper classes for primitive data types

8.3.2 Wrapper class methods

8.4 Summary

Lesson 9 String and StringBuilder Classes

9.1 Working with strings

9.2 Converting between numbers and strings

9.3 String methods

9.4 StringBuilder class and methods

9.5 Summary

Lesson 10 Static Methods and Variables

10.1 Static Methods

10.2 Static Variables

10.3 Final Static Variables

10.4 Summary

Lesson 11 Using Interfaces

11.1 What is an Interface

11.2 Defining a new Interface

11.3 Implementing an Interface

11.4 Summary

Lesson 12 Capstone 2

12.1 Create the Author class

12.2 Create the Book class

12.3 Create the ACMEPublishing class

12.4 Summary

Unit 3: Programming with Objects

Lesson 13 Overloading Methods

13.1 Three ways to overload a method

13.2 Quick Check 13-1:

13.3 Write a class with overloaded methods

13.4 Call the overloaded method

13.5 Overloading Constructors

13.6 Summary

Lesson 14 Overriding Methods

14.1 Write a Class that Extends Another Class

14.2 Write an overridden method in a subclass

14.3 Using the keyword super

14.4 Using the keyword instanceof

14.5 Summary

Lesson 15 Polymorphism Explained

15.1 Understand the Definition of Polymorphism

15.2 Benefits of Using Polymorphism

15.3 The Difference Between Compile Time and Runtime Polymorphism

15.4 Summary

Lesson 16 Polymorphism In Action

16.1 Setup Classes Using Inheritance to Demonstrate Polymorphism

16.2 Define Objects Using Polymorphism

16.3 What Does it Mean to Upcast and Downcast objects

16.4 How the JVM Chooses the Correct Method to Execute

16.5 Summary

Lesson 17 Comparing Objects

17.1 Comparing Objects vs. Primitive Data Types

17.2 Compare Objects for Equality

17.3 Use the Comparable interface to compare objects

17.4 Summary

Lesson 18 Capstone 3

18.1 Creating Classes

18.1.1 The Project class

18.1.2 The Address Class

18.1.3 The Worker class

18.1.4 The Carpenter Class

18.1.5 The Electrician Class

18.1.6 The Plumber Class

18.2 Main Application

18.3 Summary

Unit 4: More Programming with Objects

Lesson 19 Pass by Value vs. Pass by Reference

19.1 Passing Primitive Types

19.2 Passing Reference Types

19.3 Summary

Lesson 20 Garbage Collection

20.1 Java Heap

20.2 Garbage Collection

20.2.1 20.2.1 Nullifying the reference variable

20.2.2 Reassigning the reference variable

20.2.3 Creating an object inside a method

20.2.4 Island of Isolation

20.3 Summary

Lesson 21 Java Collections: List

21.1 Collections in Java

21.2 Understand when to use the List collection

21.3 ArrayList, LinkedList and Vector

21.4 Common Collection Interface Methods

21.5 Summary

Lesson 22 Java Collections: Set

22.1 Sets in Java

22.2 Understand when to use the Set collection

22.3 HashSet, LinkedHashSet, and TreeSet

22.3.1 HashSet

22.3.2 LinkedHashSet

22.3.3 TreeSet

22.4 Common Collection Interface Methods

22.5 Summary

Lesson 23 Collections: Queues

Lesson 24 Collections: Maps

Lesson 25 Using Generic classes

Lesson 26 Capstone 4

Unit 5: File Processing

Lesson 27 Reading from Files

Lesson 28 Writing to Files

Lesson 29 Using Streams from Java 8

Lesson 30 Data parsing

Lesson 31 File error handling

Lesson 32 Capstone 5

Unit 6: Advanced Topics

Lesson 33 Exception Handling

Lesson 34 Lambda Functions

Lesson 35 Coupling/Cohesion

Lesson 36 Design Patterns

Lesson 37 Singletons

Lesson 38 Encapsulation

Special lessons:

How to run Java programs from the terminal

How to use JShell

Package your app for deployment

What's inside

  • Creating classes and objects
  • Understanding the standard Java API
  • File processing
  • Six capstone projects
  • File error handling
  • Design patterns
  • Packaging apps for deployment

About the reader

This book is written for readers with a beginner-level knowledge of any programming language. No prior experience with Java or object oriented programming is required.

About the author

Peggy Fisher is a content manager and staff instructor at LinkedIn Learning Solutions, currently in charge of finding instructors for courses on core programming languages. Her lifelong passion for teaching and technology has led to her extensive experience in course creation and instruction including as a high school computer science teacher, a consultant for Microsoft, and a content manager and lecturer at Pennsylvania State University.

placing your order...

Don't refresh or navigate away from the page.
Manning Early Access Program (MEAP) Read chapters as they are written, get the finished eBook as soon as it’s ready, and receive the pBook long before it's in bookstores.

FREE domestic shipping on three or more pBooks