WeakReference in Java


WeakReference, SoftReference and PhantomReference are added to the Java API long back but have not effectively used by most of the programmers. The reason being the less knowledge on the concept of how these APIs work for managing the references. Basically these APIs are helping the Garbage Collector to claim the memory looking at the […]

Eclipse Tips : Refactoring History


Rafactoring History is one of the rarely useful feature supported by Eclipse. If you are do lot of changes in the project, using this feature you could see the list of changes done on that project with the brief details about the changes. Note that this is not similar to the local history where local history […]

Eclipse Tips : Default Browser Settings


If you are working with Eclipse, it has the internal browser for running the web applications. By default, this option is set to its own Eclipse system web browser which will be running inside the Eclipse environment itself. Typically developers run the web applications using the “Run As” command by right click on the web […]

Eclipse Tips : Rename Variable (ALT + SHIFT + R)


Eclipse provides cool short cut key for renaming the variables across within a class or entire workspace. If you are not aware of this feature, you would use “find” option and replace the variable with new name. But, this will lead to a problem of not renaming all the references. You can easily rename the […]

Eclipse Tips : How To Create Custom Code Template In Eclipse


One of the awesome feature in Eclipse is to create the custom code template to insert on the appropriate context. For example, there is default for loop template is exist in the Eclipse IDE, if you type for and press CTRL + SPACE, it would insert the complete for loop syntax with the condition. This […]

Eclipse Tips : Open Declarations (CTRL + O)


When you are working within a class, often you would need to look up or navigate to the specific method in the same class. If you are not aware of CTRL + O short cut, then probably you would have searched the method using search dialog or scroll down manually to the method. However, if […]

Eclipse Tips : How To Add User Library In Eclipse


In Eclipse environment, library means set of JAR files which is used for implementing a particular framework or version. By default, Eclipse comes with set of libraries used for the Java environments, Web applications, etc. which are known as the system / web libraries. To make things simpler, Eclipse has the facility to create own […]

Eclipse Tips : How To Add Server In Eclipse


This example illustrates how to add the server instance using the server wizard in Eclipse. One of the greatest advantage of using the IDE’s like Eclipse is that developers can use the server instances inside the editor itself without leaving the Eclipse environment. Eclipse itself supports the multiple server adapters to easily integrate the server […]

Eclipse Tips : Local History Settings in Eclipse


One of the cool feature in the Eclipse IDE is to retrieve the old back up of change done for each file from the local history. Many of the developers are not aware of this feature to get the old changes when somethings are overwritten by mistake. There is setting in the Eclipse to change […]

Eclipse Tips : How To View Heap Status In Eclipse


This example illustrates how to view the current status of heap in the JVM where eclipse application is running. Eclipse allocates the pre-defined heap memory for its own use. If the usage reaches the maximum level, the performance of your eclipse would be very slow. Whenever it reaches the maximum level, eclipse triggers the Garbage […]

Please support the site
By clicking any of these buttons you help our site to get better