227 Results for:JVM

  • Sort by: 

How Java's System.in reads input from the user

By Cameron McKenzie 29 Sep 2022

The Java System.in component provides universal access to console-based user input. Learn how to make your applications interactive with this Java System.in tutorial. Read More

A simple 'try with resources' in Java example

By Cameron McKenzie 30 Mar 2022

Java's 'try-with-resources' exception handling feature can help you write better, more effective Java code. Here's a quick example of the try with resources construct in action. Read More

How to use Epsilon GC to stop Java garbage collection

By Cameron McKenzie 18 Mar 2021

The best way to stop Java garbage collection from happening is to use the experimental Epsilon GC, no-op garbage collector from JDK 11. Learn how and when to use it. Read More

Why is Java platform-independent?

By Cameron McKenzie 23 Jun 2021

Sun Microsystems architects designed Java to be cross-platform. But why? Here we look at not only why Java works across platforms, but also how it achieves its platform independence. Read More

Comparing Java and JavaScript: Advanced conditional logic

By Cameron McKenzie 29 Jan 2016

How do the conditional logic semantics of Java and JavaScript compare? In a browser versus JVM language comparison, this is one place where the two languages are very similar. Read More

Problems with Java modules still plague developers

By Joseph B. Ottinger 06 Dec 2021

The Java Platform Module System promised to fix the missteps of the past. Unfortunately, it has repeated the problems that plagued OSGi and JBoss Modules. Read More

An example of how suppressed exceptions in Java work

By Cameron McKenzie 30 Mar 2022

Don't ignore suppressed exceptions. In this quick tutorial we show you how to anticipate when code will throw suppressed exceptions, along with the best practices to handle them. Read More

A tough, 10-question Java garbage collection quiz

By Cameron McKenzie 26 Feb 2021

Do you know which Java garbage collector is deprecated and which is best for stateless apps? Test your knowledge in this Java GC algorithm and tuning quiz. Read More

How to use JShell in Java

By Cameron McKenzie 26 Feb 2023

If you haven't used Java's JShell yet, you're missing out. Here's a quick Java and JShell tutorial to get you started. Read More

Integer vs. int: What's the difference?

By Cameron McKenzie 03 Mar 2023

What's the difference between an Integer and int in Java? Here we compare these two Java data types for usage, performance and when to choose an int or an Integer in your code. Read More