<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Java on Yonatan Karp-Rudin</title><link>https://yonatankarp.github.io/tags/java/</link><description>Recent content in Java on Yonatan Karp-Rudin</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 11 Mar 2023 00:00:00 +0100</lastBuildDate><atom:link href="https://yonatankarp.github.io/tags/java/index.xml" rel="self" type="application/rss+xml"/><item><title>[Interview Questions] Concurrency vs. Parallelism: Decoding the Simultaneous Illusion</title><link>https://yonatankarp.github.io/blog/interview-questions-concurrency-parallelism/</link><pubDate>Sat, 11 Mar 2023 00:00:00 +0100</pubDate><guid>https://yonatankarp.github.io/blog/interview-questions-concurrency-parallelism/</guid><description>&lt;blockquote&gt;
&lt;p&gt;TL;DR - What are the differences between concurrent and parallel programming?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;One of my most successful posts so far is a detailed explanation of my favorite interview question (see &lt;a href="https://yonatankarp.com/how-does-hashmap-work-in-java"&gt;How does HashMap work in Java?&lt;/a&gt; for more details). As a result, I&amp;rsquo;ve decided to create a series of posts breaking down more questions. All the questions that will be answered during this series have been used in my current employer&amp;rsquo;s hiring process.&lt;/p&gt;</description></item><item><title>How does HashMap work in Java?</title><link>https://yonatankarp.github.io/blog/how-hashmap-works-java/</link><pubDate>Fri, 02 Dec 2022 00:00:00 +0100</pubDate><guid>https://yonatankarp.github.io/blog/how-hashmap-works-java/</guid><description>&lt;p&gt;As an interviewer, I often ask the question about how HashMap works in Java. It helps me assess a candidate&amp;rsquo;s understanding of data structures, JVM internals, and their problem-solving approach. I&amp;rsquo;ve encountered many candidates, including juniors, mid-levels, and seniors, who couldn&amp;rsquo;t answer this question correctly. So, I decided to share the answer with everyone.&lt;/p&gt;
&lt;p&gt;In this article, I will explain the HashMap question step by step.&lt;/p&gt;
&lt;h3 id="what-is-the-contract-between-the-equals-and-hashcode-functions-in-java"&gt;What is the contract between the equals() and hashCode() functions in Java?&lt;/h3&gt;
&lt;p&gt;&lt;img src="https://yonatankarp.github.io/images/blog/medium-1*o-EXRh62Vv1wF6hGc8enkg.jpeg" alt=""&gt;&lt;/p&gt;</description></item><item><title>How to Break Your HashMap in Less Than a Minute</title><link>https://yonatankarp.github.io/blog/break-hashmap-less-than-a-minute/</link><pubDate>Fri, 02 Dec 2022 00:00:00 +0100</pubDate><guid>https://yonatankarp.github.io/blog/break-hashmap-less-than-a-minute/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Never use mutable objects as keys in your HashMap!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;After I wrote my article &lt;a href="https://yonatankarp.com/how-does-hashmap-work-in-java"&gt;&lt;strong&gt;How does HashMap work in Java?&lt;/strong&gt;&lt;/a&gt;, a few people suggested more topics related to HashMap. As a result, I decided to create a short series of articles about it.&lt;/p&gt;
&lt;p&gt;In today&amp;rsquo;s article, we will discuss JVM HashMaps and how they can be easily broken if not used carefully. It&amp;rsquo;s important to note that while we&amp;rsquo;ll be focusing on the JVM world, the same principles apply to most modern programming languages.&lt;/p&gt;</description></item></channel></rss>