aspose file tools*
The moose likes Java in General and the fly likes pointers in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "pointers in java" Watch "pointers in java" New topic
Author

pointers in java

sridhar sivaraman
Greenhorn

Joined: Mar 02, 2012
Posts: 13
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Apr 06, 2010
Posts: 4366
    
    8

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

Joined: Mar 17, 2011
Posts: 7676
    
  19

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


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
sridhar sivaraman
Greenhorn

Joined: Mar 02, 2012
Posts: 13
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You don't need "memory management schemes" in Java, garbage collection takes care of memory for you.
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

sridhar sivaraman wrote:Hmmm i'm doing an antivirus scanner in java


Bad idea. Wrong tool for the job.
sridhar sivaraman
Greenhorn

Joined: Mar 02, 2012
Posts: 13
Ya i know that its a bad idea but i'm doing that as a challenge buddy, that's y
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3615
    
  14

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

Joined: Mar 02, 2012
Posts: 13
Hmmm its ok and thanks for the reply
sridhar sivaraman
Greenhorn

Joined: Mar 02, 2012
Posts: 13
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

Joined: Jan 03, 2004
Posts: 6109
    
    6

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

Joined: Jan 03, 2004
Posts: 6109
    
    6

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!
 
wood burning stoves
 
subject: pointers in java