1. Home
  2. Computing & Technology
  3. Java

Java: Most Popular Articles

These articles are the most popular over the last month.
Is Your PC 32-bit or 64-bit?
Follow these steps if you want to find out if your computer is 32-bit or 64-bit.
What Is Java?
Find out what Java is, who created it, and why people choose to program with it.
Creating Your First Program
Are you ready to start programming in Java? Follow this step-by-step tutorial to learn how to write, compile and run Java programs.
Accessors and Mutators
In object-oriented programming sometimes it's necessary to provide access to the private fields of an object. The use of accessors and mutators are a way to enable that access.
Download the JDK
Make your first Java download the right one. Step-by-Step instructions on how to download the latest version of the JDK.
Java Naming Conventions
Using standard Java naming conventions will increase the readability of your code and make it easier to maintain.
Create a Simple Window
How to use JFrame to create a simple window for a Java application.
Install the JDK
Step-by-Step instructions on how to install the latest version of the JDK.
Declaring Variables
The use of variables is key to any program. Learn how to declare and initialize variables in Java.
Odd Magic Squares
Turtles, magic and squares will conspire to test your logic in this exercise.
What Is Inheritance?
Learn about object inheritance and how it can be used to create a relationship between objects that share common characteristics.
Designing and Creating Objects
Follow this step-by-step guide to learn how to design and create an object.
How to Generate Random Numbers
Learn how to generate random numbers using the java.util.Random class.
Object-Oriented Programming
Understanding object-oriented programming is fundamental to becoming a truly great Java programmer. The key concepts of objects are discussed in this article.
What Is Unicode?
Learn about the Unicode standard, a global way to encode the characters that computers use.
The Constructor Method
When a new instance of an object is created the constructor method is called. Examples of how to create constructor methods in Java are discussed here.
Reserved Words
Here you will find a list of words that you cannot use as identifiers in a Java program.
Build a Java Applet
Follow this step-by-step tutorial to learn how to write, compile and run Java applets.
Generate Unique Random Numbers
Sometimes the random numbers to be picked need to be unique.
Definition: Aggregation
Aggregation is a relationship between two objects that is best described as a "has-a" relationship.
Doubly-Even Magic Squares
Take the odd magic squares program one step further with another test of your programming logic.
Java Is Case Sensitive
When coding in Java it's important to remember that Java is case sensitive. Here are some tips to avoid common case sensitivity pitfalls.
Common Runtime Error
See if you can debug a piece of code that produces one of the most fundamental Java runtime errors.
Java and the Mac OS X
Things are a little different for Java developers on Mac OS X. Find out how Java fits in with Apple computers.
Data Encapsulation
Find out about data encapsulation, the most important concept of object-oriented programming.
The Hailstone Sequence
A clever German mathematician created a simple formula that will produce what is sometimes known as the hailstone sequence. Can you write a program to display that sequence for a certain number?
Static Fields
Fields can be shared across all objects of the same type through the use of the static modifier.
Primitive Data Types
The Java language provides eight primitive data types that define simple values a program can use.
Definition: Association
The association relationship is a way of describing the fact that a class knows about holds another class
Using Inheritance
Discover how a class can inherit the state and behaviors of another class.
Definition: Method Signature
A method signature is part of the method declaration. It is the combination of the method name and the parameter list.
IDEs Versus Text Editors
To learn Java you need somewhere to write your programs. Here's a guide to using an IDE versus a text editor.
Definition: Ternary Operator
The ternary operator "?:" earns its name because it's the only operator to take three operands.
Arithmetic Operator
Arithmetic operators perform the same basic operations you would expect if you used them in mathematics (with the exception of the percentage sign).
Definition: Composition
Composition is a relationship between two classes that is based on the aggregation relationship.
The Infinite Loop
Can you rewrite this Java code so that there is no longer an infinite loop?
Definition: Variable
A variable is a container that holds values that are used in a Java program.
Implementation Comments
Enhance the readability of your programs by using Java comments.
Imperative Language
An imperative language uses a sequence of statements to determine how to reach a certain goal.
Definition: Implicit Parameter
In a method call the implicit parameter is the object the method belongs to.
Compound Assignment Operator
Compound assignment operators provide a shorter syntax to assign the results of the arithmetic and bitwise operators.
Definition: Conditional Opera
Conditional operators are used to evaluate a condition that's applied to one or two boolean expressions.
Constructor Chaining
Constructor chaining occurs through the use of inheritance.
Definition: Denary
The denary (or decimal) numbering system is the most widely used in the world. It has a base of 10 and uses the numerals 0,1,2,3,4,5,6,7,8,9.
Definition: Overloading
Overloading is the ability to define more than one method with the same name in a class.
Robocode
Competition in the Robocode arena is fierce. Learn Java by trying to build a robot that will send all the others to the scrap heap!
Build a Simple Robocode Robot
It's time for some robot carnage.
Definition: Identifier
An identifier is simply a name given to a package, class, interface, method, or variable.
Definition: Parameter
Parameters are the variables that are listed as part of a method declaration.
Definition: Superclass
A superclass is a class that has been extended by another class.
Using Packages
Learn how to include the functionality of packaged classes into your programs.
Declarative Language
A declarative language describes what it wants to accomplish rather than focusing on how to achieve that goal
Assignment Operator
The most commonly used operator is the assignment operator.
Definition: Super
The super keyword enables a subclass to call the methods and fields of its superclass.
How to Prevent Inheritance
Some classes are designed not to be extended by other classes. Find out how to prevent a class being inherited by another.
Definition of Start Menu
The Start menu contains shortcuts to programs that are installed on the Windows operating system.
Definition: Concatenation
Concatenation describes the operation of joining two strings together.
What Is a Package?
Bring a sense of order to your classes through the use of packages.
Counting Rabbits
Here's a idealistic way for counting rabbits – can you determine how many will exist after 20 generations?
Playing With Wrappers
Play around with wrapper classes in this simple exercise.
Definition: Equality Operator
In Java, there are two equality operators to determine whether one operand is equal to, or not equal to the other operand
The Collatz Theory
The hailstone sequence is back again. This program is designed to test Lothar Collatz's unproven theory.
Control Flow Statement
Normally the statements that make up a Java program are executed in the order that they are written. To allow for more flexibility, a control flow statement can be employed to execute statements based on whether a certain condition is met.
Definition: Octal
Octal refers to a numbering system that has a base of eight. This means it only uses the eight numerals 0,1,2,3,4,5,6,7 for each digit of a number.
Definition: Modifier
A modifier is a keyword placed in a class, method or variable declaration that changes how it operates.
Definition: Keyboard Shortcut
Keyboard shortcuts are a way of running menu options by pressing a combination of keys.
Literal Loop
Can you write loops using hexadecimal and octal literals?
Definition: JDK
JDK stands for "Java Development Kit".
Definition: Float
A float is a Java data type that is made up of four bytes.
Definition: Hexadecimal
Hexadecimal refers to a numbering system that has a base of 16. This means it uses all the numerals 0,1,2,3,4,5,6,7,8,9 as well as the letters A,B,C,D,E,F for each digit of a number.
Definition: Operand
The arguments that have an operation performed on them by an operator are called operands.
Definition of term Windows Key
The Windows key bears the Microsoft Windows logo, and is generally found between the “Ctrl” and “Alt” keys on your keyboard.
Immutable
Immutable means unchangeable.
Definition: Operator
Operators are designated characters within the Java language that perform operations on arguments to return a specific result.
Definition: RIA
RIA stands for "Rich Internet Application". A rich internet application normally runs on a web page but provides the same functionality as a normal desktop application.
Tech Test Train
Test your JavaFX knowledge by answering questions posed by the conductor of the JavaFX Tech Test Train. The more you get right the further down the track you progress.
Breaking Out
Are you a fan of jumping out of loops? If so, where do you land after breaking out?
Java - Articles
An index of articles for the Java guide site.
Definition: Inheritance
Inheritance enables programmers to define an "is-a" relationship between a class and a more specialized version of that class.
Definition: Dependence
Dependence is a relationship between two classes where one class uses another.
Definition: Deprecated
When a new version of an API is released it's quite common for parts of it to become deprecated.
Definition: Expression
Expressions are essential building blocks of any Java program. They are built using values, variables, operators and method calls.
Definition: Garbage Collection
Garbage collection is the process of automatically detecting memory that is no longer in use, and freeing it up so that it can be used again.
Converting Strings
Test your ability to convert Strings to numbers.
Shifting Bits
How are you at shifting bits right and left?
Relational Operator
A relational operator compares two operands to determine whether one is greater than, greater than or equal to, less than, less than or equal to the other.
Definition: JVM
JVM stands for Java Virtual Machine.
Definition: API
API stands for “Application Programming Interface”.
Definition of a Compiler
A compiler is a program that takes code written by programmers, and translates into a language a computer can understand.
PIE Theory
An online game to help you learn JavaFX whilst grappling with paranormal and strange events. Can you help investigate the next JUMP?
Definition: Source Code
Programmers write software programs using a programming language, e.g., Java. The programming language provides a series of instructions they can use to create the program they want. The instructions a programmer uses to build the program are known as source code.
Definition: Regular Expression
A regular expression defines a pattern that matches a certain set of strings.
Definition: CamelCase
CamelCase is where compound words are written using capital letters for the first letter of each word.
Going Around and Around
Have you ever wanted to put your programs into a spin? Here's your chance.
Definition: Literal
A literal is a value that can be written directly into Java source code.
Code Points
Try and discover which characters are represented by the Unicode code points.
Definition: Debugger
A debugger is a program that helps programmers find errors within their source code.
Expression Statement
Some expressions can be used as statements by simply adding a semicolon.
Definition: JRE
JRE stands for “Java Runtime Environment”.
Declaration Statement
Declaration statements are used to declare variables.
Encoded First Line
I have cunningly encoded a first line from an Iain Banks book. Can you write a program to decode it?
Definition: JSR
JSR stands for Java Specification Request.
Definition: Applet
An applet is a Java program that is run through a webpage.
Definition: AWT
AWT stands for “Abstract Window Toolkit”.
Definition: Statement
If expressions are akin to clauses in the English language, then statements are like sentences.
Definition: Subclass
A subclass is a class that extends another class.
Void
The void keyword denotes that a method does not have a return type.
Definition: Strongly Typed
Java is a strongly typed programming language because every variable must be declared with a data type.
Definition: IDE
IDE stands for “Integrated Development Environment”.
Definition: C
C is a programming language created in the 1970s that is still in use for some operating system software.
Definition: GUI
GUI stands for “Graphical User Interface”.
Definition: HTML
HTML stands for “Hypertext Markup Language”.
Apatite
Apatite enables developers to search the Java API using associative browsing.
Jadeite
Jadeite extends Java API documentation by encouraging developers to edit the API entries with pointers to relevant classes.
Uncoded Line
This time rather than decoding a line, it's time to encode one.
Code Points (Part II)
Explore the characters produced by code points beyond the lower ranges.
Java - Profiles
An index of Profiles for the Java guide site.
Definition: XML
XML stands for Extensible Markup Language.
Explore Java
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Java

©2009 About.com, a part of The New York Times Company.

All rights reserved.