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...



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...



10: 8 Java Maps & Caching Data in Java Interview Q&As

Q1. What is the purpose of a Map interface in Java collection API? A1. A map is a set of associations between pairs of objects. … Read more ›...



6 Key considerations in processing large files in Java

Q1. What are the key considerations in processing large files? A1. Before jumping into coding, get the requirements. #1 Trade-offs among CPU, Memory Usage &… Read more ›...



8 Java memory management interview Q&As

Q1. Are memory leaks possible in Java, which has memory management via automatic Garbage Collection? A1. Memory and resource leaks are possible in any robust application. … Read more ›...



9 Java Garbage Collection interview questions & answers – part 1

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 throughput &

Read more ›



9 Java Garbage Collection interview questions & answers – part 2

Extends Q1 & Q2 of Java GC interview Q&As covering GC basics. Let’s cover more in-depth GC interview Q&As. Q3. What is the difference between a weak reference and a...



Java String & Array limitations and OutOfMemoryError

Q1. What is the maximum possible length of a Java String & how much heap space do you need to store the maximum possible String object?
A1.

Read more ›



javap, jps, jmap, and jvisualvm tutorial – analyzing the heap histogram

Q1. Is there anything wrong with the code snippet shown below?

A1. The above code creates too many “Integer” objects due to auto boxing.

Read more ›



Monitoring/Profiling Java applications interview Q&A

Q1 How will you go about monitoring your Java application for potential performance or memory issues? A1 1. Visual VM for monitoring Java memory,… Read more ›...



300+ Java Developer Interview Q&As

800+ Java Interview Q&As

Top