Java Tutorials, Tips & Tricks

Convert Jar file to EXE executable.

Convert Jar file to EXE executable.

[ad name=”AD_INBETWEEN_POST”] I remember the day when I created a Tic Tac Toe game using Java Swing and packed it in an executable JAR file to distribute it among my friends. As few of...

How to take screen shots in Java

How to take screen shots in Java

While surfing through internet, I came to this amazing piece of code in Java that takes the screen shot of your desktop and save it in a PNG file. This example uses java.awt.Robot class...

Decompile Java Class file using decompilers.

Decompile Java Class file using decompilers.

Byte codes generated by javac compiler can again be converted into java source. For this we need a decompiler tool. Decompilers are the utilities that generate the source code from input java class file....

Java Singleton design pattern tutorial.

Java Singleton design pattern tutorial.

Java Singleton design pattern is one of the design pattern that governs the instantiation of an object in Java. This design pattern suggest that only one instance of a Singleton object is created by...

Playing with JVM / Java Heap Size.

Playing with JVM / Java Heap Size.

Java programs executes in JVM uses Heap of memory to manage the data. If your Java program requires a large amount of memory, it is possible that the virtual machine will begin to throw...

Java Virtual Machine, An inside story!!

Java Virtual Machine, An inside story!!

Java Virtual Machine, or JVM as its name suggest is a “virtual” computer that resides in the “real” computer as a software process. JVM gives Java the flexibility of platform independence. Let us see...

Create JAR file in Java & Eclipse

Create JAR file in Java & Eclipse

[ad name=”AD_INBETWEEN_POST”] Let us see how to create a JAR file using Java’s jar command as well as using Eclipse IDE. The JAR file format is based on the popular ZIP file format. Usually...