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

  • Home
  • SEARCH
  • 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 6608177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:34:55+00:00 2026-05-25T19:34:55+00:00

C++ supports pointers whereas Java does not. But when many programmers questioned how you

  • 0

C++ supports pointers whereas Java does not. But when many programmers questioned how you can work without pointers, the promoters began saying “Restricted pointers.” So we can say Java supports Restricted pointers?

  • 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-25T19:34:55+00:00Added an answer on May 25, 2026 at 7:34 pm

    The terminology is quite fuzzy here.

    Java supports what it calls “references”. References act a lot like pointers in C/C++-like languages. They don’t act the same way “references” work in those languages.

    The major differences between a pointer in C and a reference in Java are:

    • You can’t do pointer arithmetic in Java (i.e. you can’t “add” or “subtract” from a Java reference, you can only dereferencere it or compare it with another one).
    • You can’t cast it to an incompatible type: Java is strongly type-safe, you can’t “re-interpret” the bytes in memory as some other object.

    For some uses of pointers this has no real effect (for example linked lists work pretty much the same in both languages), for others the difference is quite major (arrays in C are just fancy pointer arithmetic, in Java they work quite differently).

    So in a way Java references could be called “restricted pointers”.

    Wikipedia defines a pointer as

    … a programming language data type whose value refers directly to (or “points to”) another value

    Emphasis mine. According to this strict definition, Java doesn’t have pointers.

    The more general reference is the superclass of pointers, but also contrains more abstract things like file handles or even URLs.

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

Sidebar

Related Questions

I know WCF supports many WS-* protocols but WS-Eventing does seem to be listed.
WebKit/Safari supports the console object, which is similar to what Firebug does. But what
Vxworks supports standard IP v4 and IP v6 sockets, but sockets are also used
Are function pointers supported in Inno Setup? I can't find anything in the documentation.
The Java JCR API defines a persistence mechanism which can be used to replace
Does google protocol buffers support stl vectors, maps and boost shared pointers? I have
Currently only iPhone supports the vibrations how can I check if my device supports
since PHP 5.3 Zend Framework definetly supports namespace as I assume. But the tutorials,
I am in need of Java library for graphs that supports dynamic visualization. I
I would like to know how memory can be protected without MMU support. I

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.