227 Results for:JVM
- Sort by:
How Java's System.in reads input from the user
29 Sep 2022The 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
30 Mar 2022Java'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
18 Mar 2021The 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?
23 Jun 2021Sun 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
29 Jan 2016How 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
06 Dec 2021The 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
30 Mar 2022Don'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
26 Feb 2021Do 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
26 Feb 2023If 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?
03 Mar 2023What'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