Search This Blog

Friday, May 20, 2011

Java and References

Point to note;
  1. Java has pointers!!
    Java : Dog d = new Dog("Wicky"); is same as
    C++: Dog *d;

  2. When you pass foo(d) in Java, you actually pass the pointer


No comments:

Post a Comment