Java RSS

Follow The Programmer Blog RSS feed to stay up to date with the latest programming tutorials regarding anything Java. If you're looking to upgrade your software developer shirt collection we offer some pretty cool programmer shirts. For more of the latest developer news and programming tutorials visit The Programmer Blog. View all programming tutorials tagged with Java below:


Java, random

Java - Generating random integers

While generating random int values in a specific range is fairly simple, it still requires that you understand the syntax and how to use the Java Random class. Let's take a quick look at some examples below which go over some options when generating a random number in Java depending on your Java version. Java 1.6 and older In older version of java it...

Read more

CLASSPATH, Java

Java - "Could not find or load main class" Error

One of the most frequently encountered errors when learning Java programming is the "Could not find or load main class" error. Before we dive into understanding the cause of the error, it's first important to understand how to launch a program using the java command. The "Could not find or load main class" error can be caused by many things, let's start with the basics...

Read more

Java, java.lang.OutOfMemoryError, systemoutofmemory

Java - java.lang.OutOfMemoryError

Learn how memory leaks manifest themselves in Java and how to avoid a System Out of Memory Exception. Contrary to what many people think, an application written in Java may rather present memory leak problems, resulting in exceptions of type System Out of Memory (java.lang.OutOfMemoryError). Unfortunately, a large number of Java programmers think that Memory leak is a C /...

Read more