Java Tutorials, Tips & Tricks

R.I.P Sun: James Gosling paying Respects

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....

Advanced Messaging Queuing Protocol: A Short Note

Advanced Messaging Queuing Protocol: A Short Note

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...

Loading Java Properties Files

Loading Java Properties Files

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...

Inner classes in Java, the mystery within.

Inner classes in Java, the mystery within.

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 &...

Setting Tomcat Heap Size (JVM Heap) in Eclipse

Setting Tomcat Heap Size (JVM Heap) in Eclipse

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...

Java Garbage Collection Simplified

Garbage collection is a way in which Java recollects the space occupied by loitering objects. By doing so, it [Java] ensures that your application never runs out of memory (though we cannot be assured that the program will ever run out of memory).

Sending Emails in Java using GMail ID

Thought of sharing following code with you all. It is a small code snippet that uses SMTP in Java to login into GMail and send email using ones GMail account. String host = “smtp.gmail.com”;...