Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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