- Friday, February 19, 2010, 20:33
- How-To, Java
- 618 views
Ever wanted to hide all those closed projects in eclipse? Well, here is a simple trick that you may not know already.
Imagine your Eclipse workspace is filled with many projects that you created in past just to test some small functionality. Now you are done with these projects and hence you have closed it. Eclipse by default show all the closed projects in Project ...
Full story
- Monday, February 15, 2010, 11:00
- Java
- 1,140 views
iText is a wonderful library if you want to generate PDFs in Java. It comes with a huge set of API to create/manage a PDF file. We already saw in our previous tutorial
how to generate a pdf file in itext and also
how to merge ...
Full story
- Wednesday, February 10, 2010, 15:12
- Java
- 5,148 views
Quote 1: Avoid creating unnecessary objects and always prefer to do Lazy Initialization
Object creation in Java is one of the most expensive operation in terms of memory utilization and performance impact. It is thus advisable to create or initialize an object only when it is required in the code.
public class Countries {
private List countries;
public ...
Full story
- Friday, January 22, 2010, 3:14
- Java, News
- 534 views
The European Commission on Thursday approved Oracle Corp.'s acquisition of Sun Microsystems after regulators were assuaged over the fate of an open-source database, James Gosling have paid respect to Sun Microsystem on his
blog. Please go to his blog and pay your respect to Sun.
Full story
- Friday, December 11, 2009, 15:41
- Java
- 380 views
Synopsis
This note deals with AMQP, and some implementations, especially Qpid and ActiveMQ.
Introduction
AMQP stands for Advanced Messaging Queuing Protocol. It is a standard for cross platform messaging. It is a wire protocol and aims to enable functional compatibility between clients (from various platforms) and messaging brokers.
It is pretty comprehensive and aims to cover all distributed business scenarios. ...
Full story
- Thursday, December 10, 2009, 15:31
- Java
- 1,095 views
Synopsis
This note describes a few simple commands on how to view the RAM and CPU usage of your Java process. It provides brief pointers on how to identify the influencing parameters and how to tweak it.
Memory
Java Heap
The heap size of your Java process can be controlled by using a combination of –Xmx and –Xms.
The heap size ...
Full story
- Monday, October 26, 2009, 14:01
- Java
- 6,351 views
Java Properties files are amazing resources to add information in Java. Generally these files are used to store static information in key and value pair. Things that you do not want to hard code in your Java code goes into properties files.
Although there are multiple ways of loading properties file, I will be focusing on loading the resource bundle files from class path resources. ...
Full story
- Saturday, October 10, 2009, 18:47
- Featured, Java, Tutorial
- 6,688 views
Inner classes, also called Nested Classes, are nothing but classes that are defined within other classes. The nesting is a relationship between classes, not objects.
Inner classes have clearly two benefits, name control & access control. In Java, this benefit is not as important because Java packages give the name control.
Java inner classes have feature that ...
Full story
- Wednesday, October 7, 2009, 16:48
- Java
- 2,000 views
Update: This feature has been removed from the final feature list that is being included in Java 7. Thanks @Stephen and @Stefan for the comments. Please refer to
Project Coin for more details.
NullPoniterException is one of the most common exception encountered in Java programming. When I searched "NullPointerException" in Google, it gave about ...
Full story
- Monday, October 5, 2009, 21:58
- J2EE, Java
- 3,859 views
Recently while running Tomcat under Eclipse for one of the web application I was getting Java Heap memory related error java.lang.OutOfMemoryError.
What needs to be done here basically is to increase the
jvm heap size. So for increasing the JVM Heap Size of Tomcat in Eclipse we have to set few VM arguments of the tomcat.
Follow ...
Full story