Consider the following code :
// This code safely publishes the Publishable object
public static Publishable publishable= new Publishable();
I have seen such a way of publishing the custom Publishable object and I read that this is safe. My question is :
- Is this a really a way of safe publication ?
- If the answer to 1 is no then why ? If yes, then also please explain why ?