hey folks! how does java handle pointers. i know that java as such does nt have pointers but it creates the references and objects right. i am totally confused on these references can some one help me in explainin me. thanks in advance ......
Basically all variables of type Object are actually pointers to an Object. So with String s = "Java"; s is actualy a pointer pointing to the location of the String.
AHA Thomas!! Caught ya! You KNOW that it says in the fine print of the JLS [non-quote] Thou shalt NOT use the word pointer as a synonym for a reference in JAVA. [end-non-quote] Even though a variable holds an address or reference to the location of an object in java, it does not have the same ability to be manipulated the way a pointer in c does. Therefore it is dangerous to use the word pointer in any context in java.
"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.