Latest Posts

Exception in thread main – Java

Being a Java Programmer, you must have seen exception in thread main sometimes while running a java program. Exception in thread main If you are using Java IDE like Eclipse or Netbeans to run a….

Underscores in Numeric Literals – Java 7 Feature

One of the Java 7 features is underscores in numeric literals. You can place underscores between digits of any numeric literal like int, byte, short, float, long, double. Using underscores in numeric literals will allow….

Binary Literals in Java – Java 7 Feature

Binary literals are new features in Java 7. As you all know that we can write integral types (byte, short, int, and long) in Binary and Hexadecimal formats. However, from Java 7 onwards we can….

How to fix maven Out of Memory issue

Recently I started working on a huge project that was using Maven as a build and deployment tool. When I tried to build the project, I got the ugly java.lang.OutOfMemoryError. To fix this, you will….

Java Try with Resources

Today we will look into Java Try with Resources. One of the Java 7 feature is try-with-resources statement for automatic resource management. Try with Resources A resource is an object that must be closed once….

Java switch case String

Today we will look into Java Switch Case String Example. Being a java programmer, I know the importance of String and how many times it’s used for conditional flow. Whether you have a simple method….

Insertion Sort in Java

Today we will look into the Insertion Sort Java program. Insertion sort is similar to Bubble sort and in this post, we will go through the insertion sort algorithm, example and then write insertion sort….

Crontab example – every 5 minutes

Today we will look into crontab example to execute a script every 5 minutes. Crontab example Recently I installed memcached server on CentOS operating system to use as a caching mechanism for my VBulletin forum…..

Apache Restart CentOS Script

Apache web server restart is easy but how would you do it automatically? Few days back, my apache server crashed and my website was down for almost 3 hours. I only find it out when….

How to install memcached into CPanel running CentOS

Recently I was trying to configure a VBulletin forum to use Memcached for caching. I was looking for some guidance for easy setup but didn’t find any useful and easy guide. I had installed memcached….

Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages