Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Java has no pointer concept but c++ has within the OOPS forums, part of the Software Development category; Java has no pointer concept but c++ has. I want to know whether it is a advantage or disadvantage. Thanks Manoj...
|
|||||||
|
|||
|
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....... |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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 02:58 AM. |
|
|||
|
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
|
|
|||
|
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. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| void pointer in C Programming Language | Shivanna | C and C++ | 13 | 02-08-2009 09:54 AM |
| OOPS concept..... | psuresh1982 | OOPS | 13 | 08-02-2007 06:17 AM |
| Version concept | espiderz42 | Testing Issues | 2 | 04-19-2007 04:37 AM |
| Want to know the Concept | StephenRaj | Unix/Linux | 4 | 01-12-2007 07:54 AM |
| Concept in .NET | JohnMathew | ASP.NET | 2 | 10-09-2006 04:25 PM |