Selman Tayyar

Java -and-Polyglot developer in Amsterdam

Menu
Widgets
Search
Skip to content
  • Home
  • About Me

RSS

  • RSS - Posts

memory usage

Java Memory Usage

What would be the amount of memory used in heap when  you create an “empty” class and then add a int member to  it?

Answer:8 bytes for the class and 4 for the int. But since memory blocks are used as 8 bytes, total memory allocated would be 16 bytes.

Share this:

  • Twitter
  • Email
  • Facebook
  • LinkedIn

Like this:

Like Loading...
May 13, 2009selmantayyar java, memory usage, object Leave a comment

Tags

Angular.js ASB Backbone Computing couchbase devoxx docker ElasticSearch ESB History j2ee java JavaEE Javascript Jquery memory usage nodejs nosql npm object OSB Quote servlet 3.0 SOA Visual Studio

Who am i?

  • About Me

Timeline

My Tweets

RSS Javalobby Feeds

  • Top 7 Trends in IoT to Look Out for in 2021 April 17, 2021
  • Silly Kubectl Trick #10: Cleaning Up After Yourself April 17, 2021
  • TiDB Operator Source Code Reading (Part 1): Overview April 17, 2021
  • MQTT 5 vs. MQTT v3.1.1 for IoT App Development April 17, 2021
  • Cloud Storage Security and Data Encryption April 17, 2021
  • If You Dare To Lead, Lead With Vulnerability April 17, 2021
  • Do Complex SQL Queries on Files Directly [Snippets] April 17, 2021
  • Apache Kafka and MQTT (Part 1 of 5): Overview and Comparison April 17, 2021
  • How to Crop and Rotate an Image in Java April 17, 2021
  • Data Ingestion From RDBMS: Leveraging Confluent's JDBC Kafka Connector April 17, 2021
April 2021
M T W T F S S
 1234
567891011
12131415161718
19202122232425
2627282930  
« Nov    
Create a free website or blog at WordPress.com.
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
<span>%d</span> bloggers like this: