Innhold om Java
Totalt 25 innlegg
Side 1 av 2
Slutt med Java
Java er død, lenge leve JVMen!
Java er død, lenge leve JVMen!
@Transactional demystified
Extend your super knowledge on Generics
We all know and appreciate Java Generics. It enables us to say "oh, this is a List of Strings", "oh, this is a Comparator for Integers", and the compiler will forbid you to add numbers to your list, or sorting your List of Strings by comparing Integers. Because it does not make sense. Before Generics was introduced in Java 5.0 in 2004, nothing was stopping you from expressing these nonsensical actions, and things would blow up when running your program, instead of being told already when writing the code that there is no way this will work.
We all know and appreciate Java Generics. It enables us to say "oh, this is a List of Strings", "oh, this is a Comparator for Integers", and the compiler will forbid you to add numbers to your list, or sorting your List of Strings by comparing Integers. Because it does not make sense. Before Generics was introduced in Java 5.0 in 2004, nothing was stopping you from expressing these nonsensical actions, and things would blow up when running your program, instead of being told already when writing the code that there is no way this will work.
Code as data, Java edition
So long, Java 8
Or –– how to upgrade your code base from JDK 8 to 11 and beyond.
Or –– how to upgrade your code base from JDK 8 to 11 and beyond.
Garbage collection
Garbage collection (GC) has been one of Java's most compelling features since its inception. Allowing developers to focus on the core functionality of their application instead of memory management.
Garbage collection (GC) has been one of Java's most compelling features since its inception. Allowing developers to focus on the core functionality of their application instead of memory management.
What's new in Java 12, 13 and 14, part II
A couple of days ago, we had a look at two new features in Java 13 and 14. In today's article, we'll cover some more goodies arriving in the near future.
A couple of days ago, we had a look at two new features in Java 13 and 14. In today's article, we'll cover some more goodies arriving in the near future.
Java ❤️ Kotlin
It's time to get on the fun train. Start simple by introducing small pieces of Kotlin into your existing Java code.
It's time to get on the fun train. Start simple by introducing small pieces of Kotlin into your existing Java code.
What's new in Java 12, 13 and 14, part I
The release cycle of Java has changed quite dramatically recently, meaning we're getting new features at a more rapid pace than earlier. If you still hadn't had the time to read up on what's been going on the last releases, look no further!
The release cycle of Java has changed quite dramatically recently, meaning we're getting new features at a more rapid pace than earlier. If you still hadn't had the time to read up on what's been going on the last releases, look no further!
Managing multiple installations of Java on a Mac
With the new release cadence of Java and vendor landscape, managing multiple versions of Java can become a tedious task. However, tooling exists to make your life simpler.
With the new release cadence of Java and vendor landscape, managing multiple versions of Java can become a tedious task. However, tooling exists to make your life simpler.
Debugging Streams in IntelliJ
Have you ever found it hard to debug Streams in Java? Allow me to introduce you to a very powerful tool in IntelliJ IDEA; Mr. Stream Trace.
Have you ever found it hard to debug Streams in Java? Allow me to introduce you to a very powerful tool in IntelliJ IDEA; Mr. Stream Trace.
Use your time wisely! Run tests in parallel
Have you ever been annoyed that your tests take an incredibly long time? I have. A simple trick can save time by running (almost) all your tests in parallel.
Have you ever been annoyed that your tests take an incredibly long time? I have. A simple trick can save time by running (almost) all your tests in parallel.
Good ol’ I/O streams
No, not the Stream API introduced in Java 8, but the API for stream-based I/O which has been part of the JDK since Java 1.0. That is even older than the Collections Framework, which you had to wait until Java 1.2 to be available. And as with the Java Collections, even though the java.io API is quite dated, it is still heavily in use. InputStreams and OutputStreams are passed around, and consumed and written to, also in applications which are written nowadays.
No, not the Stream API introduced in Java 8, but the API for stream-based I/O which has been part of the JDK since Java 1.0. That is even older than the Collections Framework, which you had to wait until Java 1.2 to be available. And as with the Java Collections, even though the java.io API is quite dated, it is still heavily in use. InputStreams and OutputStreams are passed around, and consumed and written to, also in applications which are written nowadays.
Persistent job scheduling without Quartz
Have you ever had the need for scheduling background tasks but always wanted a more lightweight alternative to Quartz Scheduler?
Have you ever had the need for scheduling background tasks but always wanted a more lightweight alternative to Quartz Scheduler?