Java 16 brings a series of improvements to the language, including increments to records, sealed classes and switch statements. We review some of the new features as well as looking at some capabilities that are going away.
Search Results for: bits
Java Sound API – Capturing Microphone
Learn how to capture microphone input and save it to a file.
Enabling Unlimited Strength Cryptography in Java
Learn why and how to enable unlimited strength cryptography in different versions of Java.
Bitmasking in Java with Bitwise Operators
A quick and practical guide to low-level bitmasking using bitwise operators.
Guide to Java BigInteger
Learn about the implementation details of the BigInteger class in Java.
Generating Alphanumeric UUID String in Java
A practical comparison of various UUID generation methods in Java.
Logical vs Bitwise OR Operator
Java supports two variations of OR with different operator precedence and runtime behaviour. We explore how logical OR short-circuits and how bitwise OR applies to numbers and boolean values.
Secret Key and String Conversion in Java
A quick and practical introduction to secret key and string conversion in Java.
RSA in Java
Learn how to create RSA keys in Java and how to use them to encrypt and decrypt messages and files.
Java Weekly, Issue 379
Pattern matching meets switch expressions, working with lazy relationships, Spring Boot for serverless, the road to Kotlin 1.5 and Java 17, and tips for working from home!
How to Analyze Java Thread Dumps
Learn how to analyze thread dumps to efficiently diagnose performance issues. Also, we’ll learn to detect bottlenecks or even simple bugs.
Experimental Garbage Collectors in the JVM
Learn the new Shenandoah garbage collector and how it compares against other garbage collectors
Determine if an Integer’s Square Root Is an Integer in Java
Finding if an integer’s square root is also an integer is an interesting subject. Let’s look at some techniques we can use.
InvalidAlgorithmParameterException: Wrong IV Length
In this tutorial, we’ll describe how to avoid InvalidAlgorithmParameterException when we generate the IV and use it in a cipher algorithm.
Comparing Doubles in Java
In this tutorial, we’ll talk about the different ways of comparing double values in Java.
Java AES Encryption and Decryption
Learn how to implement AES encryption and decryption using the Java Cryptography Architecture.
Understanding the & 0xff Value in Java
Learn how to use the 0xff value with the bitwise AND operator in Java.
Using JNA to Access Native Dynamic Libraries
Learn how to use JNA to access native code easily when compared to JNI.
Largest Power of 2 That Is Less Than the Given Number with Java
Learn how to find the largest power of 2 that is less than an input number.
Java Weekly, Issue 348
Kotlin 1.4 is out with lots of small yet useful features! Intriguing topics on GraalVM, Spring, Hibernate, and SQL. Also, more patterns to design distributed systems.