Java FAQ for Beginners: The Questions Every New Student Asks

Straight answers to the Java questions new students ask most: is it free, is it safe to download, is it compiled, is it case-sensitive, and which version to install.

Java is still one of the most common first languages in university CS programs, and new students ask the same questions in their first few weeks. Here are clear answers, with links to deeper guides where it helps.

Getting started

Which version of Java should I install?

Install the newest long-term support (LTS) release of the JDK, the Java Development Kit, unless your course names a specific version. Java ships a new version every six months, and every two years one of them is an LTS release with years of updates: Java 21 (2023) and Java 25 (2025) are the current ones. Code from older tutorials still runs on newer versions.

What’s the difference between the JDK, JRE and JVM?

  • JVM (Java Virtual Machine): the program that runs compiled Java code on your computer.
  • JRE (Java Runtime Environment): the JVM plus the standard libraries, which is everything needed to run Java programs.
  • JDK (Java Development Kit): the JRE plus the tools to write Java, including the javac compiler. As a student, the JDK is what you want.

Is Java free and open source?

Yes, for everything you’ll do as a student. Java’s reference implementation, OpenJDK, is open source, licensed under the GPL with a special exception that lets you use it in any program, including commercial ones. Free OpenJDK builds are available from Eclipse Adoptium (Temurin), Microsoft, Amazon (Corretto) and others.

The confusion comes from Oracle JDK, Oracle’s own build. Recent versions are free to use under Oracle’s no-fee terms, but businesses that want Oracle’s long-term support pay for a subscription. Many companies use free OpenJDK builds instead. For learning, either is fine and costs nothing.

Is Java safe to download and install?

Yes, as long as you download it from an official source: oracle.com, adoptium.net, or your operating system’s package manager. Avoid “Java update” pop-ups on websites, which are a common trick for spreading malware.

Java’s old reputation for security problems came from the Java browser plugin, which let websites run Java applets in your browser. That plugin was removed years ago, in Java 11, so a modern JDK doesn’t expose your browser at all. Two habits keep you safe:

  • Keep Java updated. Security fixes ship every quarter.
  • Uninstall old versions you no longer need, especially any old Java 8 runtime left over from years ago.

How Java works

Is Java compiled or interpreted?

Both. The javac compiler turns your .java source files into bytecode (.class files). The Java Virtual Machine then runs that bytecode: it starts by interpreting it, and compiles the parts that run most often into native machine code as the program runs, called just-in-time (JIT) compilation. That’s how Java runs the same compiled program on Windows, macOS and Linux and still runs fast. Our guide to how high-level code reaches the processor explains the approaches side by side.

Is Java case-sensitive?

Yes. To Java, score, Score and SCORE are three different names. Keywords like class, public and int must be lowercase, and built-in class names have a capital letter:

String name = "Ada";   // works
string name = "Ada";   // error: cannot find symbol

int total = 5;
System.out.println(Total);   // error: Total is not total

Case mistakes are one of the most common compile errors for beginners. Following Java’s naming conventions makes them rarer:

  • Classes use PascalCase: BankAccount.
  • Variables and methods use camelCase: accountBalance, getBalance().
  • Constants use uppercase with underscores: MAX_SIZE.
  • The file name must match the public class name exactly, including case: BankAccount.java.

An IDE such as IntelliJ IDEA will flag case errors as you type, and its autocomplete avoids most of them.

What makes Java different from other languages?

When Sun Microsystems released Java in 1995, it described the language with a list of goals that still sum it up well: simple, object-oriented, portable (“write once, run anywhere”), robust, secure and multithreaded. In practice that means automatic memory management, strict static typing that catches errors before your program runs, and a huge standard library. For a comparison with C++, Python and JavaScript, see how Java is different from other languages.

Learning Java

Is Java hard to learn?

It’s wordier than Python, with more to type before your first program runs, but its strictness is useful for learning: the compiler catches many mistakes before they become confusing bugs. Most students are comfortable with the basics after a semester. More in is Java hard to learn.

What can you build with Java?

Android apps, the server side of large web applications, enterprise systems at banks and retailers, big-data tools such as Hadoop and Kafka, and games, Minecraft being the most famous. To start building now, try our 10 Java projects for beginners.

Is Java still worth learning?

Yes. Java is consistently one of the most-used languages in industry, especially at large companies, and it’s common in technical interviews. The object-oriented design you learn in Java also carries straight over to C#, Kotlin and TypeScript.