• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

C Pointers and Java

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic