Selman Tayyar

Java -and-Polyglot developer in Amsterdam

Menu
Widgets
Search
Skip to content
  • Home
  • About Me

RSS

  • RSS - Posts

java

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 Can Digital Testing Help in the Product Roadmap March 28, 2023
  • Detecting Network Anomalies Using Apache Spark March 28, 2023
  • Web Testing Tutorial: Comprehensive Guide With Best Practices March 27, 2023
  • Don’t Overpay for Cloud: Six Mistakes To Avoid When Moving to the Cloud March 27, 2023
  • Using Artificial Intelligence in Finance March 27, 2023
  • Technological Advancement in EV (Electric Vehicle) and EV Ecosystem March 27, 2023
  • The Architecture and MVC Pattern of an ASP.NET E-Commerce Platform March 27, 2023
  • Apache Druid, TiDB, ClickHouse, or Apache Doris? Comparing the OLAP Tools We Have Used March 27, 2023
  • Application Architecture Design Principles March 27, 2023
  • Orchestration Pattern: Managing Distributed Transactions March 27, 2023
March 2023
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« 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: