Jeff Friesen

Jeff Friesen teaches Java technology (including Android) to everyone via articles, blogs, books, and software. In addition to writing Java books for Apress, Jeff has written numerous articles on Java and other technologies for JavaWorld, InformIT, Java.net, and SitePoint. Jeff can be contacted via his website at JavaJeff.ca.

Java tip: Fields and methods in Java

Java tip: Fields and methods in Java

Learn seven advanced techniques for working with fields and methods in Java, including recursion, method call chaining, pass-by-value arguments, and rules for calling methods

Java tip: When to use composition vs inheritance
Tip

Java tip: When to use composition vs inheritance

Inheritance is a valuable programming technique, but in some conditions it breaks encapsulation. Find out why composition is the vital alternative to inheritance, and learn when and how to use it in your Java programs.

Inheritance in Java, Part 2: Object and its methods

Inheritance in Java, Part 2: Object and its methods

Get to know Java's Object superclass and its methods for duplicating, comparing, cleaning up, and scheduling Java objects

Inheritance in Java, Part 1: The extends keyword

Inheritance in Java, Part 1: The extends keyword

Use Java's extends keyword to derive a child class from a parent class, invoke parent class constructors and methods, override methods, and more

Classes and objects in Java

Classes and objects in Java

Learn how to make classes, fields, methods, constructors, and objects work together in your Java applications.

Loop, switch, or take a break? Deciding and iterating with Java statements

Loop, switch, or take a break? Deciding and iterating with Java statements

Learn how to use standby statements like for, while, if-else, and break, then get started with the new switch expressions in Java 12

Evaluate Java expressions with operators

Evaluate Java expressions with operators

Everything you need to know about the Java operator types and using them to write and evaluate Java expressions in Java 12

Elementary Java language features

Elementary Java language features

Learn three ways to document your code, then get started using identifiers, types, literals, and variables in Java 12

Learn Java from the ground up

Learn Java from the ground up

If you're new to Java then you've come to the right place. Get an overview of the Java platform, then code your first application using Java 12 and the new Java Shell

Java XML and JSON: Document processing for Java SE, Part 2: JSON-B

Java XML and JSON: Document processing for Java SE, Part 2: JSON-B

Use the Java API for JSON Binding (JSON-B) to serialize and deserialize Java objects, arrays, and collections in Java SE

Java XML and JSON: Document processing for Java SE, Part 1: SAXON and Jackson

Java XML and JSON: Document processing for Java SE, Part 1: SAXON and Jackson

Learn how to transform and convert XML and JSON documents with SAXON and Jackson

Write a purely functional Bubble Sort application

Write a purely functional Bubble Sort application

Improve a classic, object-oriented sort application using Java's functional programming capabilities

Functional programming for Java developers, Part 2

Functional programming for Java developers, Part 2

Rewrite object-oriented code using functional techniques. Get started with lambdas, method references, functional interfaces, and the Streams API in Java

Functional programming for Java developers, Part 1

Functional programming for Java developers, Part 1

Optimize your Java code with these five functional programming techniques

Datastructures and algorithms in Java, Part 5: Doubly linked lists

Datastructures and algorithms in Java, Part 5: Doubly linked lists

In addition to singly linked lists, Java offers several other types of list that you can use to search and sort stored data in your Java programs.

Datastructures and algorithms in Java, Part 4: Singly linked lists

Datastructures and algorithms in Java, Part 4: Singly linked lists

Learn how to search and sort linked lists in Java! Examples in this tutorial demonstrate how to create a singly linked list, insert and delete nodes in a singly linked list, and more. Find out which algorithms are most used to sort...

Java language oddities

Java language oddities

The Java language includes various behaviors that may puzzle newcomers to the language. This post examines three such behaviors involving arrays, bytes and shorts, and private fields and methods.

Datastructures and algorithms in Java, Part 3: Multidimensional arrays

Datastructures and algorithms in Java, Part 3: Multidimensional arrays

Multidimensional arrays are useful for complex computing scenarios, and ragged arrays can help conserve memory for big data applications. Learn how to create multidimensional arrays and ragged arrays and use them in your Java programs....

Base64 encoding and decoding in Java 8

Base64 encoding and decoding in Java 8

Java 8 will be remembered mainly for introducing lambdas, streams, a new date/time model, and Nashorn--but don't miss the new Base64 API. It could be just what you need to ensure data integrity in transit.

Datastructures and algorithms in Java, Part 2: One-dimensional arrays

Datastructures and algorithms in Java, Part 2: One-dimensional arrays

Get started with one-dimensional arrays and array variables, then try out five algorithms for searching and sorting arrays in your Java programs

Load More