Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

C Pointers and Java

 
sree kov
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read something like :
"The strength of C pointers is lost in java"
Can anyone comment on this ???
Regards,
Sree
 
shomalbafna
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Sree Kov
When we talk about the strength of pointers it is also very important to understand the cons of pointers. We very well know the pointers directly allow us to manipulate values in memory locations. And can also address to mem-locations belonging to other programs. This is serious problem when it comes to security.
If this strength then it is lost in java.
Whereas java language does maintain pointers internally but the programmer is not allowed with the same privilege. Its the VM through which the calls are made to the H/w hence optimising the need for security at a very high level.
regards shomal
 
rajesh purohit
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i worked in both c/c++ and java. and i personally feel that java has lost the strength of pointers.
any one who works in c/c++ will be knowing that how important is pointer (and anyone can enjoy using it :P)
bye for now
Rajesh Purohit
INDIA
----------------------------------------------
visit me at www.geocities.com/rajesh_purohit/index.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic