Diff.between object and reference

Discussions

EJB design: Diff.between object and reference

  1. Diff.between object and reference (4 messages)

    I have doubt on object.what is the difference between object and reference?
  2. whats the confusion ?

    I dont find any common ground to compare Object and Reference.

    Object is an entity in memory which represents an instance of a class.
    While reference is the pointer address of the object.

    So reference is like post box number while the object is the actual place.

    shri
  3. Where these reference and object stored in the memory?How it will interact?I am getting lot of confusion in this,sorry for asking again?
  4. I have doubt on object.what is the difference between object and reference?

    There is a small line between object and reference.
    As an example a remote control is an object but it is a reference for a television...
    ok let us see in different perspective....when we cast a oblect into another class...for example we are changeing an int object into a double. here the reference of the object will change.Initially it was pointing integer now it shall point double...
    I think by the this time u must have got the difference...if not again ask me
     Thanx
  5. Thank you.Now,I got the point.