Results 1 to 12 of 12

Thread: Java has no pointer concept but c++ has

  1. #1
    Expert Member
    Join Date
    Jan 2007
    Answers
    249

    Smile Java has no pointer concept but c++ has

    Java has no pointer concept but c++ has. I want to know whether it is a advantage or disadvantage.

    Thanks
    Manoj


  2. #2
    Expert Member
    Join Date
    Dec 2006
    Answers
    204

    Re: Java has no pointer concept but c++ has

    Advantage. I don like pragramming with pointers.
    its unsafe to use pointers.
    but we can program efficiently using pointers.


  3. #3
    Contributing Member
    Join Date
    Mar 2007
    Answers
    34

    Re: Java has no pointer concept but c++ has

    pointers in c c++ provide multiple behavior so what i think it is easy for us that java is free from pointer


  4. #4
    Junior Member
    Join Date
    Aug 2008
    Answers
    1

    Re: Java has no pointer concept but c++ has

    java being used for creating applets,where it is unsafe to use pointer because by using pointer any memory location can be accessed and for security issues pointer are not used in java
    correct me if i am wrong please.......


  5. #5
    Junior Member
    Join Date
    Feb 2009
    Answers
    1

    Post Re: Java has no pointer concept but c++ has

    of course its an advantage only and one of the main reason why we r saying tat java is more secure than c++ and c.....


  6. #6
    Expert Member
    Join Date
    Nov 2008
    Answers
    300

    Re: Java has no pointer concept but c++ has

    Pointers, help you directly access memory location and also used vastly in programming for gaming purpose.

    Applications can be developed using Java because you do not require Pointers concept for creating applications.

    Pointers are very efficient to use but always dangerous becuase there is no limit to which it can read memory locations.


  7. #7
    Junior Member
    Join Date
    Jul 2007
    Answers
    20

    Re: Java has no pointer concept but c++ has

    C++ has Pointer. We can access the Data Directly by using the pointer. It may cause for Security Flow. Security Feature is less in C++.

    In Java We cannot access Data directly by using the pointer. So It has High Security.


  8. #8
    Junior Member
    Join Date
    Sep 2009
    Answers
    1

    Re: Java has no pointer concept but c++ has

    C++ has pointer. We can access the data directly by using the pointer, directly access the memory location so in C++ security feature is less.
    In java there is no concept of pointers so the java is highly secure.


  9. #9
    Junior Member
    Join Date
    Sep 2009
    Answers
    4

    Thumbs up Re: Java has no pointer concept but c++ has

    hello guys

    yes java doesn't support pointers because of three reasons:

    > it leads to confusion unless we have full-fledged knowledge about pointers.

    >the program crashes easily (if the person forgets to release the memory that leads to wastage ).

    >it breaks the security where security is the major advantage of java language
    (viruses,worms such programs will easily inject into our program using pointers as it is a direct memory location).

    i hope my answer will be helpful .bye

    Last edited by jyothi85; 09-27-2009 at 01:58 AM.

  10. #10
    Junior Member
    Join Date
    Oct 2007
    Answers
    3

    Smile Re: Java has no pointer concept but c++ has

    I think java uses a new features of refernce variables instead of pointers through we dont have to also use many other function such as malloc ,calloc which are used in C++ which allocationg memory & using pointer


  11. #11
    Junior Member
    Join Date
    Oct 2009
    Answers
    2

    Re: Java has no pointer concept but c++ has

    C++ has pointers but java doesn't support it,becoz java focuses on security.

    Using pointers we can write virus programs,inorder to avoid it,they removed the ptr concept from java.

    Hope tis helps u.


  12. #12
    Junior Member
    Join Date
    Dec 2009
    Answers
    1

    Re: Java has no pointer concept but c++ has

    c++ has the pointer technology, but java hasnt. it is the advantage of java.
    because pointers does not provide security and can confuse the programmer such a difficult concept it is. hence , java softpeople excepted pointers in java.


  13.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact