About 13,500,000 results
Open links in new tab
  1. What exactly is a reference in Java? - Stack Overflow

    Sep 4, 2015 · A reference is a "pointer" to a memory address in Java, even though Java eleminates direct manipulation of pointers, unlike C++. Objects in Java are never passed to …

  2. Is Java "pass-by-reference" or "pass-by-value"? - Stack Overflow

    Sep 3, 2008 · Usually in Java, reference means a reference to an object. But the technical terms pass by reference/value from programming language theory is talking about a reference to the …

  3. java - What are classes, references, and objects? - Stack Overflow

    Feb 10, 2012 · A reference is an address that indicates where an object's variables and methods are stored. You aren't actually using objects when you assign an object to a variable or pass …

  4. Object vs Reference in Java - Stack Overflow

    In Java, all objects are accessed by reference, and you never have direct access to the object itself. reference :- is a variable that has a name and can be used to access the contents of an …

  5. How to do "call by reference" in Java? - Stack Overflow

    Dec 16, 2016 · 43 Real pass-by-reference is impossible in Java. Java passes everything by value, including references. But you can simulate it with container Objects. Use any of these as a …

  6. java - What is Object Reference Variable? - Stack Overflow

    Nov 25, 2015 · What is Object Reference variable in java? Does the reference variable holds the memory address of the object? I am confused. Please do explain.

  7. java - What's the difference between primitive and reference types ...

    @Eng.Fouad: passing an argument by reference is well defined in C. Understanding of these concepts [pointers, values, pass by reference] in C almost ensures understanding the …

  8. Can I pass parameters by reference in Java? - Stack Overflow

    Jul 1, 2009 · Java is confusing because everything is passed by value. However for a parameter of reference type (i.e. not a parameter of primitive type) it is the reference itself which is …

  9. reference - What's the difference between SoftReference and ...

    What's the difference between java.lang.ref.WeakReference and java.lang.ref.SoftReference ?

  10. Are arrays passed by value or passed by reference in Java?

    Oct 6, 2012 · 323 Everything in Java is passed by value. In case of an array (which is nothing but an Object), the array reference is passed by value (just like an object reference is passed by …