Skip to content

Instantly share code, notes, and snippets.

@chathurangat
Last active February 24, 2018 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chathurangat/ced2b4b30fe4edf945cbbc9c07ff4710 to your computer and use it in GitHub Desktop.
Save chathurangat/ced2b4b30fe4edf945cbbc9c07ff4710 to your computer and use it in GitHub Desktop.
public class MySharedObject
{
public static final MySharedObject object3 = new MySharedObject();
//member variables pointing to two objects on the heap
public Integer object2 = new Integer(22);
public Integer object4 = new Integer(44);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment