The magic of reflection API

Java Reflection API: The Magical World of Java

Hey, tea lovers! Ever wonder how Spring auto-wires the fields without using setters or constructors or Hibernate stores column values to the appropriate fields? or Gson converts your POJO to JSON? How are they reading the class’s field? and not only reading but changing or storing the values in them, even though they are private? Let me reveal the mystery. They are using Java Reflection API. What kind of magical substance is this? How these libraries are using them? How can we use them? Phew! too many questions to answer. Let’s just dive into it and find the answers. ...

April 18, 2021 Â· 8 min Â· Imran Shaikh
A Day in the Life of Java Code in JVM

A Day in the Life of Java Code in JVM

Hey, Tea Lovers! Today we will talk about Java Memory Management with the example. We will look at the code and then how it is affecting the JVM. So the relationship between these 2. I will try to explain it line by line. So let us see how a code lives its life. It is part of the JVM post series “Get Ready to Deep Dive Java Memory Management”. Before we explain examples first we will understand the java rules for java memory allocation. ...

July 3, 2020 Â· 5 min Â· Mahesh More
Be more Functional with Java's Functional Interfaces

Monitor Your Java Memory with these Tools

Hey Tea lovers! Today, we will talk about Java memory monitoring tools. You will need them when you want to see how well or worst your code is performing, or if you don’t know what’s going on in there. I have added not only the information about them but also videos showing how to use them in brief. It is the continuation of the post series This is the continuation of the post series “Get Ready to Deep Dive Java Memory Management”. ...

July 3, 2020 Â· 4 min Â· Imran Shaikh
Untitled-Diagram

Get Ready to Deep Dive in Java Memory Management: Structure of JVM Memory

Hey, Tea Lovers! Today we will talk about Java Memory Management. Memory management is the process of the allocation & de-allocation of objects from a memory and it’s done automatically with the help of a garbage collector. As Java programmers, we do not bother about java memory management as Java has an automatic garbage collector that works in the background to clean up unused objects and free up java memory. ...

July 2, 2020 Â· 7 min Â· Mahesh More