What Use Are Java Interfaces?

What are interfaces in Java, and what good are they?....

Java Swing Tutorial for Beginners; Hello World, Observers, Listeners and Events

In this tutorial we'll take a look at putting together a basic Java Swing (desktop) application. We'll also take a look at one of the most confusing aspects of Swing for beginners; communication betwe....

Java Static Class: A Tutorial on Static Classes in Java

Static classes are basically a way of grouping classes together in Java. Java doesn't allow you to create top-level static classes; only nested (inner) static classes. Let's take a look at an exampl....

What's New in Java 8: Lambda Expressions

Lambda expressions are the most important addition to Java syntax in Java 8. But what are they and how do you use them? In spite of the ferocious-sounding name, if you already know Java 7 pretty well,....

Charts in Java Swing With JFreeChart

Java Swing, the GUI toolkit for Java, has no built-in graphing and charting package. Several free packages are available, the best of which is widely considered to be JFreeChart . JFreeChart is open....

Programmable Logic Controllers: Switching Coils With Java

Or, How To Connect To Real Physical Stuff Using Java First, a disclaimer. I know next to nothing about programming programmable logic controllers. I don't even own one.However, a client of mine is....

Beginner's Java: Test Your Knowledge of Classes and Objects

Started programming in Java a few weeks/months ago, but getting horribly confused about classes, objects, settter and getters and this ?This page is for you. If you're pushed for time you can treat t....

Are You a Java Expert? Test Your Knowledge With These Four Tricky Questions

Even though Java was designed to be an easy-to-use programming language, it still has many traps and surprises for the unwary.In this article I ask grill you on four slightly lesser-known aspects of J....

Java for Beginners: Static Variables -- What Are They?

What are static variable in Java, and what are they for? A static variable is one that's associated with a class, not objects of that class. Let's take a look at an example. To keep things as simple a....

Basic Java Programming: Test Your Knowledge

If you recently started learning Java and you want to improve your grasp of the basics, try the exercises below. They cover only the absolute basics and are suitable for beginners. You can click the l....

Java Project Ideas: Things You Can Do With Java

Often if you follow a Java course or you try to teach yourself Java, you'll need to come up with an idea for a project to implement. It's not easy to think of a project that has the exact right scale,....

Java File: Reading and Writing Files in Java

About File Handling in Java Reading Ordinary Text Files in Java Reading Binary Files in Java Writing Text Files in Java Writing Binary Files in Java About File Handling in Java One this page y....

Java String: Working with Strings in Java

Declaring and Initializing Strings in Java Joining, Concatenating or Appending Strings in Java Java Substring: Selecting Parts of Strings in Java Java Array String: Joining Arrays of Strings Java....

Java Package: How To Structure Your Java Code Project With Packages

Packages in Java are used organize your code files and prevent namespace conflicts (where two classes have the same name).Let's take a look at a simple example. The following example assumes you're on....

Java Class: Using Classes and Objects in Java

In this tutorial we're going to take a look at classes and objects in Java. If you need a refresher on packages in Java, with help on compiling and running simple Java programs,....