Java 101: The essential Java language features tour, Part 7

Java 101: The essential Java language features tour, Part 7

End your tour of Java's essential language features with Java 8's method references, interface default and static methods, and three lesser known language updates, then preview new features coming in Java 9.

07/16/15

Java 101: Deciding and iterating with Java statements

Java 101: Deciding and iterating with Java statements

Learn how to use statements like if, if-else, switch, and while to specify expressions, make decisions, and iterate in your Java programs.

06/30/15

Java 101: Evaluate Java expressions with operators

Java 101: Evaluate Java expressions with operators

Continue learning the fundamentals of Java programming, with this Java 101 introduction to using operators to write compound Java expressions.

06/26/15

Java 101: Elementary Java language features

Java 101: Elementary Java language features

Learn three ways to document your code and find out why Unicode is the universal encoding standard for Java, then practice using identifiers, types, literals, and variables in your Java programs. All examples are written in Java 8.

05/26/15

Java 101: Learn Java from the ground up

Java 101: Learn Java from the ground up

If you're new to Java then you've come to the right place: Get started with the foundations of the Java platform and code your first Java application with this classic tutorial for beginners.

05/12/15

Java 101: The essential Java language features tour, Part 6

Java 101: The essential Java language features tour, Part 6

Learn by example how lambdas interact with scopes, local variables, the this and super keywords, and exceptions in Java programs.

03/12/15

Java 101: The essential Java language features tour, Part 5

Java 101: The essential Java language features tour, Part 5

Not all varargs methods will contribute to heap pollution, so find out which ones do and why, in this second half of Jeff Friesen's introduction to small language changes that have made a big difference since JDK 7.

09/22/14

Java 101: The essential Java language features tour, Part 4

Java 101: The essential Java language features tour, Part 4

Project Coin was the Java 7 language update that emphasized small changes with a big impact. Get a primer on automatic resource management with try-with-resources, then zip through three more JDK 7 updates: switch-on-string,...

06/05/14

Java 101: The essential Java language features tour, Part 3

Java 101: The essential Java language features tour, Part 3

Get introduced to the last but not least of new features that have improved Java's productivity since JDK 5: Autoboxing and unboxing, the enhanced for loop, static imports, varargs, and covariant return types.

03/13/14

Java 101: The essential Java language features tour, Part 2

Java 101: The essential Java language features tour, Part 2

Learn how to use typesafe enums in switch statements, then get started with Java annotations and meta-annotations types like Target, which can clarify the meaning of annotations in your Java code.

01/21/14

Java 101: The essential Java language features tour, Part 1

Java 101: The essential Java language features tour, Part 1

From assertions in JDK 1.4 to the forthcoming lambdas in Java 8, the Java language has evolved considerably since its inception. Start building your toolbox of essential Java language features this week, with assertions and generics.

09/19/13

Java 101: Java concurrency without the pain, Part 2

Learn how the Java Concurrency Utilities handle locking, atomic variables, and fork/join operations. Then prepare for the future with an overview of anticipated changes to the Java Concurrency Utilities coming in Java 8.

08/13/13

Java 101: Java concurrency without the pain, Part 1

When concurrency gets complex, Java developers can count on the Java Concurrency Utilities to smooth the bumps. Get started with the Executor framework, concurrent synchronizer types, and the Java Concurrent Collections package, and...

06/19/13

Java 101: Catching up with the Java Date and Time API

Find out how the Java Date and Time API addresses the need for a more robust date and time infrastructure in Java SE, then familiarize yourself with the java.time classes you're most likely to use, in this inaugural installment of...

04/08/13

Java 101: Datastructures and algorithms, Part 2

Learn about the linked-list datastructure in all its variants -- single, double, and circular. Then discover the related linked-list algorithms for node-insertion/deletion, concatenation, inversion, and insertion-sort. Finally,...

06/13/03

Java 101: Datastructures and algorithms, Part 1

This is the first article in a two-part series that explores datastructures and algorithms. Start by learning basic concepts, then take a tour of the array datastructure. You'll learn about one-dimensional, two-dimensional, and ragged...

05/02/03

Java 101: Regular expressions simplify pattern-matching code

Text processing frequently requires code to match text against patterns -- for instance, for text searches, email header validation, and custom text creation from generic text. Java supports pattern matching via its character and...

02/07/03

Java 101: Java's character and assorted string classes support text-processing

Java developers use the Character, String, StringBuffer, and StringTokenizer classes to represent and manipulate text in programs. Learn how to create objects from these classes and examine their methods, then get the answers to three...

10/04/02

Java 101: Packages organize classes and interfaces

Create packages, import packaged classes and interfaces into your programs, move packages, and encapsulate them in jar files.

09/06/02

Java 101: Understanding Java threads, Part 4: Thread groups, volatility, and thread-local variables

The "Understanding Java threads" series concludes by uncovering some of the loose ends of threading: thread groups, volatility, thread-local variables, timers, and thread death.

08/02/02

Load More