Selman Tayyar

Java -and-Polyglot developer in Amsterdam

Menu
Widgets
Search
Skip to content
  • Home
  • About Me

RSS

  • RSS - Posts

object

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

  • How to Handle JavaScript Alert in Selenium WebDriver Using Python? July 5, 2022
  • CIO Guide for Operational and Business Benefits of DevOps July 5, 2022
  • Building Reactive Java Applications with Spring Framework July 5, 2022
  • How Intrinsic Type Manipulations Work in TypeScript July 5, 2022
  • Why More Incidents Are Better July 5, 2022
  • Document Annotation, Its Industry Significance, and Best Practices July 5, 2022
  • Benchmarking PostgreSQL Workloads on Kubernetes July 5, 2022
  • How to Use Automatic Mixed Precision Training in Deep Learning July 5, 2022
  • Getting Your Developers to See Value With a Great Developer Experience July 5, 2022
  • A Simple Guide to Rust Data Types July 5, 2022
July 2022
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Nov    
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: