Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pointers in java

 
sridhar sivaraman
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to implement functionality of pointers in java?
I've been refer by my friends to use a native method how to do that
 
Paul Clapham
Sheriff
Posts: 21316
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sure that none of HTML, CSS, and JavaScript will help with that question at all. So let's move the question out of the forum which is about those things into something more suitable.

And by the way you might want to explain the purpose of "implementing functionality of pointers", i.e. what you think you need those pointers for. Otherwise potential answers include "Just use C if you want pointers".
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sridhar. Welcome to the Ranch!

What pointer functionality do you want? What are you trying to achieve with it?

There's a link here that tells you more about how to implement native methods, but I wouldn't want to recommend that approach without knowing what you're actually trying to do.
 
Winston Gutkowski
Bartender
Pie
Posts: 10494
64
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sridhar sivaraman wrote:how to implement functionality of pointers in java?

Why on earth would you want to do that? The whole point of the language was that it doesn't have pointers; and very glad most of us are of it too.

Winston
 
sridhar sivaraman
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm i'm doing an antivirus scanner in java as my project so for memory managemet schemes i want pointers if there's any other means for that scheme also please inform me
and thanks for the reply
 
Paul Clapham
Sheriff
Posts: 21316
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need "memory management schemes" in Java, garbage collection takes care of memory for you.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sridhar sivaraman wrote:Hmmm i'm doing an antivirus scanner in java


Bad idea. Wrong tool for the job.
 
sridhar sivaraman
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya i know that its a bad idea but i'm doing that as a challenge buddy, that's y
 
Stephan van Hulst
Bartender
Pie
Posts: 6094
71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What would be the point? You'd be spending most of your time writing native code anyway. That's not a challenge, it's just silly.
 
sridhar sivaraman
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm its ok and thanks for the reply
 
sridhar sivaraman
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm i've recieved many reply's(from other site's also) that we can't touch the core of the system using java is there any reason's for that
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sridhar sivaraman wrote:Hmmm i've recieved many reply's(from other site's also) that we can't touch the core of the system using java is there any reason's for that


Because that's not what Java was made for. One of Java's primary design goals is and always has been platform-independence. The stuff you're trying to do is very platform-specific, and including those capabilities in Java would be contrary to its goal platform-independence. This is why I told you it's the wrong tool for the job. I thought you knew that. Sorry.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sridhar sivaraman wrote:Hmmm i've recieved many reply's(from other site's also)


Sridhar, please BeForthrightWhenCrossPostingToOtherSites(⇐click) when posting to other sites, so that people at each site will have the opportunity to see the entire discussion (or be able to choose to ignore the thread completely in favor of others that are confined to one site). Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic