Performance improvement techniques in Object creation
Avoid creating objects in a loop
Use String literals instead of String objects (created using the 'new' keyword) if the content is same.
Whenever you are done with an object make that reference null so that it is eligible for garbage collection.
Never keep inheriting chains long since it involves calling all the parent constructors all along the chain until the constructor for java.lang.Object is reached.
Use primitive data types rather than using wrapper classes.
Whenever possible avoid using class variables, use local variables since accessing local variables is faster than accessing class variables.
Another technique is Lazy object creation: i.e. delaying the memory allocation to an object till it is not being put into use. This way a lot of memory is saved till the object is actually put in to use.
Knowledge Exchange about Php Java, Asp.Net, SEO At Narola Infotech