The ultimate superclass, Part 3

This post completes a three-part series in which I present and answer questions about Object and its methods.


The ultimate superclass, Part 2

Java beginners are invited to dig deeper into Java's ultimate superclass with this introduction to Object's finalize(), getClass(), and hashCode() methods.


The ultimate superclass, Part 1

This post launches a three-part series in which I present and answer questions about Object and its methods.


Reading and writing Excel spreadsheets

The open source community has created many open source Java projects, which range from charting software to game frameworks to word processors. In this post, I introduce an open source library project for reading and writing Microsoft...


Useful utility applications

Simple utility applications can be very helpful to Java developers. For example, you might need an application that generates a hexadecimal listing of a binary file.



The Java language's transient keyword isn't as well known as for , class , synchronized , and other familiar keywords; which makes it a perfect candidate for inclusion in a job interview questionnaire.


Collections framework idioms

Java's Collections Framework provides many convenient idioms for accomplishing common tasks (e.g., removing a collection's null elements). In this post, I present a handful of these idioms, which can help you write clearer and shorter...


Customizing Swing's file chooser

The javax.swing.JFileChooser class describes a Swing component for choosing files, usually via its int showOpenDialog(Component parent) and int showSaveDialog(Component parent) methods. In this post, I enumerate various ways to...


A new beginning

Welcome to Java Q&A . In this new blog, I answer all kinds of technical questions related to Java. Each post presents one or more Java questions (based on a theme) and offers answers.


Load More