Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 998877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:16:09+00:00 2026-05-16T07:16:09+00:00

We know that the object reference variable holds bits that represent a way to

  • 0

We know that the object reference variable holds bits that represent a way to access an object.

It doesn’t hold the object itself, but it holds something like a pointer or an address.

I was going through the Head-First Java (2nd edition) book and in the book it is written (in Chapter 3, page 54) that

In Java we don’t really know what is
inside a reference variable. We do
know that whatever it is, it
represents one and only one object.
And the JVM knows how to use the
reference to get to the object. –

I want to ask:

  • Do an object reference variable holds pointer, address or what?
  • How does JVM interpret that?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:16:10+00:00Added an answer on May 16, 2026 at 7:16 am

    It’s entirely up to the JVM to determine what goes inside a reference.

    In the simplest case it would just be a pointer (i.e. an address). In more sophisticated cases, the VM may use different representations depending on the situation – for example, you may want to read the paper on “Compressed oops in HotSpot” to see how the HotSpot VM can avoid doubling the size of references in some (but not all) places when running as a 64-bit VM.

    The important thing is that you should neither know nor care. As far as you’re concerned as a programmer, it’s just an opaque set of bits – its only purpose is to let you get to the object in question (or identify a null reference).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 494k
  • Answers 494k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer YES you can but only for int types. If you… May 16, 2026 at 11:03 am
  • Editorial Team
    Editorial Team added an answer That is a serialized PHP array, not JSON. Use: $array… May 16, 2026 at 11:03 am
  • Editorial Team
    Editorial Team added an answer I've done it. You need to have a DIV on… May 16, 2026 at 11:03 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm building something that includes javascripts on the fly asynchronously, which works, but I'm
We have a .Net object that has a static delegate (a data access strategy)
I wish to add a singleton method to a particular object. I wish that
I know a few differences, Value types are stored on the stack where as
I do an object initialization as done in the code below: namespace PatternPractice {
I'm trying to understand what the correct approach for a constructor that accepts a
Is it safe to start a thread pool in an objects constructor? I know
In my controllers, I access my repositories like so: private readonly IProjectRepository projectRepository; public
I don't know how to phrase the question properly so sorry in advance. Using
I understand that every time I type the string literal , the same String

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.