Tag Archive: Java


Eclipse SDK 4.0 is the next generation platform for building Eclipse-based tools and rich client desktop applications. This new release makes it easier for developers to develop and assemble applications and tools based on the Eclipse platform.

The 4.0 release is for early adopters that want to test backwards compatibility and migrate their plug-ins and RCP applications.

Link : http://www.eclipse.org/eclipse4/

Breaking Singleton

Singleton can be broken by usingĀ Reflection and the below code demonstrates the same.

Singleton Class

package com.test.singleton;

public class Singleton {

	private static Singleton singleton  = null;

	private Singleton() {
		System.out.println("Running Constructor......");
	}

	public static Singleton getInstance(){
		if(singleton==null)
			singleton  = new Singleton();
		return singleton;
	}

}

View full article »

Powered by WordPress | Theme: Motion by 85ideas.