<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by javabypankaj on Medium]]></title>
        <description><![CDATA[Stories by javabypankaj on Medium]]></description>
        <link>https://medium.com/@p7ksingh.dev?source=rss-8676369375fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SjpTMW3B_V6Zfiw7j3kWNg@2x.jpeg</url>
            <title>Stories by javabypankaj on Medium</title>
            <link>https://medium.com/@p7ksingh.dev?source=rss-8676369375fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 23:56:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@p7ksingh.dev/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why most Java interview answers fall apart at the second question]]></title>
            <link>https://medium.com/@p7ksingh.dev/why-most-java-interview-answers-fall-apart-at-the-second-question-6605520720a7?source=rss-8676369375fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/6605520720a7</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[javabypankaj]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 07:07:06 GMT</pubDate>
            <atom:updated>2026-11-10T07:07:06.331Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KkRlSFocjIIeG3FLIy8Edg.jpeg" /></figure><p>I built a free site with 2,466 Java interview questions, and this is what I learned along the way.</p><p>I have sat on both sides of Java interviews for a long time, mostly in banking and fintech teams. One pattern keeps repeating.</p><p>Site: <a href="https://www.javabypankaj.live/">https://www.javabypankaj.live</a></p><p>A candidate gets the first question right. Then I ask a follow-up, and the answer falls apart.</p><p>Take HashMap. Almost everyone knows it is not thread-safe. But when I ask what actually goes wrong, the room goes quiet. Some people say “data gets corrupted” and stop there. Very few can explain that in older</p><p>versions a concurrent resize could create a loop in a bucket and hang a thread, or that even in modern Java you can lose updates without any exception being thrown.</p><p>The textbook answer is never the problem. Depth is.</p><p><strong>Why I built something different</strong></p><p>When I was preparing for interviews myself, most resources gave me one paragraph per question. Fine for a quick refresher, useless when the interviewer pushes further. So I started writing the answers I wished I had found.</p><p>The result is a free site with 2,466 questions across 23 chapters: <a href="https://www.javabypankaj.live/">javabypankaj.live</a></p><p>It runs from Core Java and Collections through Concurrency, Spring Boot, JPA, Microservices, Kafka, Design Patterns, System Design and DSA. It also covers DevOps, AWS, Security and the behavioural round.</p><p><strong>What a good answer looks like</strong></p><p>Here is the kind of thing I mean.</p><p><em>What does the final keyword mean?</em> The short answer is “it cannot be changed.” The better answer separates a final variable (the reference cannot change, but the object can), a final method (cannot be overridden)</p><p>and a final class (cannot be extended). Then the follow-up: why is String final? That one is about security, the string pool and thread safety together, and most candidates mention only one of them.</p><p><em>REQUIRES_NEW versus NESTED in Spring transactions.</em> REQUIRES_NEW suspends the outer transaction and starts a fresh one on a new connection. NESTED uses a savepoint on the same connection, so a failure rolls back</p><p>only to that savepoint. People mix these up constantly, and it matters in production.</p><p><em>Why does ArrayList often beat LinkedList even for inserts?</em> The textbook says LinkedList is better for insertion. In practice, cache locality and memory overhead usually flip that result. Knowing this, and being</p><p>able to explain why, is what separates a prepared candidate from a memorised one.</p><p><strong>How each answer is structured</strong></p><p>- The key points up front, so you know what to remember</p><p>- A full explanation with code you can actually run</p><p>- Edge cases and the common mistakes</p><p>- The follow-up questions interviewers tend to ask next</p><p><strong>Who it is for</strong></p><p>If you are a fresher, start with Core Java, OOP and Collections. With a few years of experience, spend your time on Spring Boot, JPA and Microservices. For senior roles, concurrency, design patterns and system</p><p>design are where interviews are usually won or lost.</p><p>There is no signup and no paywall. It has search, progress tracking and a dark mode, and it works on mobile.</p><p><strong>One request</strong></p><p>If you try it, tell me what is missing or unclear. I would rather fix a weak answer than leave it there. Leave a comment here, or message me on LinkedIn.</p><p>Site: <a href="https://www.javabypankaj.live/">https://www.javabypankaj.live</a></p><p>I also keep a small public list of sample questions on GitHub: <a href="https://github.com/p7ksingh/java-interview-questions">https://github.com/p7ksingh/java-interview-questions</a></p><p>Good luck with your next interview.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6605520720a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>