Selman Tayyar

Java -and-Polyglot developer in Amsterdam

Menu
Widgets
Search
Skip to content
  • Home
  • About Me

RSS

  • RSS - Posts

Day: May 13, 2009

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

  • Deduplication and Data Stewardship Process in MDM February 6, 2023
  • Comparing OpenAI’s CodeX and ChatGPT February 5, 2023
  • How to Deploy Machine Learning Models on AWS Lambda Using Docker February 5, 2023
  • TDD: From Katas to Production Code February 5, 2023
  • Cosmos DB as Key Object Store February 5, 2023
  • Hidden Classes in Java 15 February 5, 2023
  • Filtering Metrics With the observIQ Distro for OpenTelemetry Collector February 5, 2023
  • What Are Network Operation Centers (NOCs) and How Do NOC Teams Work? February 5, 2023
  • How to Build a Recommender System Using TensorFlow February 5, 2023
  • Building Real-Time Data Systems the Hard Way February 5, 2023
May 2009
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Feb   Feb »
Blog at WordPress.com.
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
  • Follow Following
    • Selman Tayyar
    • Already have a WordPress.com account? Log in now.
    • Selman Tayyar
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
%d bloggers like this: