Confusing Java Strings

I do not think it means what you think it means

Jonatan Ivanov

In this article, I would like to show you a couple of confusing things in connection with Java Strings and give you a few suggestions to avoid issues with them. I also prepared a GitHub repo for you where you can find some code that you can use to try the examples out on your own:

Clamshell: 2020-11-17

Recent news in tech in a clamshell

Jonatan Ivanov
  • Maven: verify or clean install?
  • Java & containers: what I wish I knew before I have used it
  • Project Amber Panel Discussion with Stuart Marks & Friends
  • Java Pub House 93. Not your Grandpa’s Serialization Part 2
  • OffHeap 55. JDKs are released! Microprofile 4.0, OSGI in Eclipse, Crypto backdoors and API Courts
  • Inside Java Episode 7 - The Vector API
  • Raspberry Pi 400
  • Alex
  • Deploy 2020
  • Jfokus 2021
  • DevNexus 2021

Clamshell: 2020-11-02

Recent news in tech in a clamshell

Jonatan Ivanov
  • Proposed schedule for JDK 16
  • JEPs proposed to target JDK 16
  • Best IDEs in Java for App Development
  • Java Futures with Brian Goetz
  • Quiz yourself: Apply encapsulation principles to a class
  • Modern Java toys that boost productivity, from type inference to text blocks
  • HashiCorp Waypoint
  • Systems Thinking
  • In the Search of Code Quality
  • Crowdsec
  • Mario on Vim
  • gitflux
  • jLove

Clamshell: 2020-10-19

Recent news in tech in a clamshell

Jonatan Ivanov
  • FSF is 35
  • Git 2.29
  • Building Netflix’s Distributed Tracing Infrastructure
  • Immutable Collections in Java using Sealed Types
  • JDK 15 Release: 64 New Features and APIs
  • Cloudflare API Shield
  • Java Exception Handling Examples in Open Source Projects
  • What is Garbage collection log, Thread dump, Heap dump?
  • Java Magazine: Quiz yourself
  • bit
  • nb

Clamshell: 2020-10-05

Recent news in tech in a clamshell

Jonatan Ivanov
  • Hacktoberfest 2020
  • Oracle Developer Live Java 2020
  • Java InfoQ Trends Report (September 2020)
  • Awesome Cheatsheets
  • A convenient list of essential Java 15 resources
  • GitHub Code Scanning is now available
  • A Picture of Java in 2020
  • Microsoft Windows XP Source Code Reportedly Leaked Online
  • The Garbage Collection Bibliography
  • Is High Quality Software Worth the Cost?
  • How do lambda expressions really work in Java?
  • duf
  • diagrams

Clamshell: 2020-09-21

Recent news in tech in a clamshell

Jonatan Ivanov
  • The Arrival of Java 15
  • Announcing Tribuo, a Java Machine Learning library
  • GitHub CLI 1.0
  • Microsoft reveals findings from their experimental undersea datacenter
  • OpenJDK: In the new age of Concurrent Garbage Collectors
  • Four common pitfalls of the BigDecimal class and how to avoid them
  • Venkat Subramaniam: Java is changing in a responsible manner
  • Why and when you should use JPA
  • Best Intellij IDEA Plugins
  • Security by Obscurity is Underrated
  • Never Skip Retros

Clamshell: 2020-09-14

Recent news in tech in a clamshell

Jonatan Ivanov
  • Java 15 GA Release
  • NYJavaSIG 25th Anniversary Event
  • foojay — a place for friends of OpenJDK
  • Let’s Get Lazy by Venkat Subramaniam
  • Vector API is proposed to target JDK 16
  • Developing Micronaut Applications With IntelliJ IDEA
  • Bootiful Testing by Josh Long
  • 21 Books Java Developers Should Read in 2020
  • Kubernetes YAML Generator
  • Design Bonos
  • Elastic Metaspace proposed to target JDK 16
  • JDK 15 G1/Parallel GC changes
  • Cognitive Biases in Software Development
  • Changelog CI?
  • K9s - Kubernetes CLI To Manage Your Clusters In Style

Clamshell: 2020-09-07

Recent news in tech in a clamshell

Jonatan Ivanov
  • OpenJDK was transitioned to GitHub
  • Spring One highlights are online
  • Introducing GitHub Container Registry
  • JetBrains Mono
  • Nerd Fonts
  • VS Code Debug Visualizer
  • Kotlin 1.4 Released
  • croc
  • Jackson Support for Java 14 Records
  • The State of Spring 2020 Report
  • How They Test?
  • Modern Data Engineer Roadmap 2020
  • Migrating from JUnit 4 to JUnit 5
  • How 4 lines of Java code end up in 518772 lines in production
  • Oracle Developer Live - Java
  • Pock

Clamshell: 2020-08-31

Recent news in tech in a clamshell

Jonatan Ivanov
  • The Start menu is 25 years old
  • The Linux Kernel is 29 years old
  • Java in 2020
  • Inside Java 15: Fourteen JEPs in five buckets
  • Finalizing in JDK 16: Pattern matching for instanceof
  • Creating Efficient Docker Images with Spring Boot 2.3
  • Config file processing in Spring Boot 2.4
  • Java Pub House 92. Not your Grandpa’s Serialization!
  • Architecture Playbook
  • My terminal became more Rusty