Blog Archives

01: jvisualvm tutorial to sample Java heap memory

Java does not have a sizeof operator like C++ does. Java uses automatic memory management known as the Garbage Collection, hence it is not that important to evaluate size of various …



02: jvisualvm to detect memory leak – a quick tutorial style Java demo

This is a companion post to 8 Java Memory Management Interview Q&A demonstrating a memory leak scenario step by step with jvisualvm, which is a free profiling tool that gets shipped …



04: Java primitives & objects memory consumption

Q1. How much memory space does a primitive type int occupy in Java? A1. 4 bytes. Q2. Java objects get stored in the heap memory space, but how about the primitive …



06: 10+ Atomicity, Visibility, and Ordering interview Q&A in Java multi-threading

Q1. Why is it important to understand the difference between the “JVM memory model” and the computer “hardware memory model”? A1. 3 reasons why it is important to understand the JVM …



3 Java class loading interview Q&As

Q1. What do you know about Java class loading? Explain Java class loaders? A1. Class loaders are hierarchical. Classes are introduced into the JVM as they are referenced by name in …



5 JMX and MBean interview questions & answers

Q1. What is a JMX? What are the key components of JMX? A1. JMX stands for Java Management Extensions (JMX), which is a technology to monitor and manage any Java applications …



9 Java Garbage Collection interview questions & answers

Java Garbage Collection interview questions & answers to ascertain your depth of Java knowledge in building industry strength Java applications. Determining optimal Garbage Collection (GC) settings is critical to achieve high …



300+ Java Interview FAQs

800+ Java Interview Q&As

Top