Java and C

Java and C were telling jokes. It was C's turn, so he writes something on the wall, points to it and says "Do you get the reference?" But Java didn't.

  • 10
    And then java threw C into the garbage collector๐Ÿ˜‚๐Ÿ˜‚๐Ÿง
  • 0
    Java didn't classify it as a joke
  • 3
    It's a shitty one since Java is based on references.
  • 2
    Java threw a NullReferenceException
  • 4
    C neither, as references are C++-only. ๐Ÿ™ƒ
  • 0
    Normally a programmer wouldn't use pointers in Java, but Java gives you the opportunity to use pointers as far as I know. Don't quote me on that.
  • 0
    "No, Java does not have pointers. The fundamental concepts in Java are "values" vs "references". A reference is a pointer that you can't normally see the value of (i.e., the memory address). The only operations allowed are to set it (from another reference) and to reference through it to the referred-to object. "
    - StackOverflow
Add Comment