Learn how to find the memory address of objects in Java
Also find me here:
Baeldung Author
Ali Dehghani
Has a BSc in Chemical Engineering and MSc in Information Technology. Except for the major change, nothing else has changed, still, a computer geek who is passionate about all aspects of software engineering looks for elegant and possibly new solutions, eager to learn and hopefully help fellow software geeks to do so.
Here's what I've written (so far):
Baeldung on Java
- All
- JVM (15)
- Java (5)
- Java Concurrency (3)
- Testing (1)
- Spring Persistence (1)
- Spring Boot (1)
- Spring (1)
- Java String (1)
- Java Array (1)
- DevOps (1)
- Artificial Intelligence (1)
- Algorithms (1)
Measuring Object Sizes in the JVM
Filed under JVM
Learn how to measure Java object sizes with various tools such as JOL, Java Agents, and the jcmd command-line utility
Configuring Stack Sizes in the JVM
Filed under JVM
Learn how to configure the thread stack sizes in the HotSpot JVM
When Does Java Throw the ExceptionInInitializerError?
Filed under Java
Learn what causes Java to throw an ExceptionInInitializerError using a few practical examples
Where Is the Array Length Stored in JVM?
Filed under Java Array, JVM
If you always wanted to know how JVM stores array length, you will find the answer here.
Memory Layout of Objects in Java
Filed under JVM
Learn how the JVM lays out objects and arrays in the heap
Exploring JVM Tuning Flags
Filed under JVM
Learn a few ways to discover JVM tuning flags and learn how to work with them
boolean and boolean[] Memory Layout in the JVM
Filed under JVM
Learn the footprint of a boolean value in the JVM in different circumstances
<init> and <clinit> Methods in the JVM
Filed under JVM
See how the compiler and runtime use the init and clinit methods for initialization purposes
Baeldung on Linux
- All
- Processes (1)
How Long a Linux Process Has Been Running
Filed under Processes
Learn about the ps command-line utility to find out how long a particular process is running.
Baeldung on Kotlin
- All
- Kotlin Strings (8)
- Kotlin Collections (8)
- Kotlin Basics (7)
- Kotlin Classes and Objects (6)
- Kotlin-Java Interop (3)
- Kotlin Functions (3)
- Kotlin Arrays (3)
- Functional Programming (3)
- Kotlin IO (2)
- Kotlin Concurrency (1)
- Kotlin (1)
Why Kotlin lateinit Can’t Be Used With Primitive Types
Filed under Kotlin Basics
Learn why we can’t use late-initialized properties and variables for primitive types in Kotlin
The Difference Between init Block and Constructor in Kotlin
Filed under Kotlin Classes and Objects
Learn the difference between init blocks and constructors in Kotlin along with a peek at the generated bytecode for each case
Returning Multiple Values From Kotlin Functions
Filed under Kotlin Functions
Learn how to use built-in types such Pair and Triple, collection types and arrays, and finally, data classes, to return multiple values.
Writing InputStream to File in Kotlin
Filed under Kotlin IO
Learn a few approaches to copy the contents of an InputStream to a file in Kotlin.
A Guide to @Throws in Kotlin
Filed under Kotlin-Java Interop
Learn how the @Throws annotation facilitates calling Kotlin methods and functions from Java
Removing Duplicate Elements From Collections in Kotlin
Filed under Kotlin Collections
Learn two approaches to remove duplicate elements from a collection or array
Copying a List in Kotlin
Filed under Kotlin Collections
Learn a couple of ways to copy the contents of a List to another one in Kotlin
Removing All Non-Alphanumeric Characters in Kotlin
Filed under Kotlin Strings
Learn a few ways to remove all non-alphanumeric characters from a string in Kotlin
Copy a Map in Kotlin
Filed under Kotlin Collections
Learn a couple of ways to copy the contents of a Map to another one in Kotlin