7 Options to Capture Thread Dumps for Analysing Memory Problems
Thread dumps are vital artifacts to diagnose CPU spikes, deadlocks, memory problems, unresponsive applications, poor response time..
How to Generate Gravtar Image Url from Email in Java
The following code snippet shows how to generate Gravatar URLs from email address. This utility method alows you to pass the size ..
How to Generate Unique File Name When Saving a File in Java
The following code snippet shows how to get unique file name when saving file in java. It first checks if already a file exist wit..
How to Calculate Image Dimensions in Java
The following code snippet shows how to calculate image dimension in java by reading the file from specified path. ..
Frequently Asked Questions on Java Memory, JVM and Garbage Collection
Currently there are are 4 GC algorithms available in the Java Hotspot VM. They are The Serial GC, The Parallel GC, CMS and The G1...
Linear / Sequential Search Example in Java
Quick Java code snippet to show Linear / Sequential Search. ..
Insertion sort example in Java
Code snippet to sort array using insertion sort algorithm in java. ..
Sort Array ascending or descending using comparator in Java
Quick Java code snippet to sort Array ascending or descending using comparator in Java. ..
Stepping Into My First Java Program “Hello World!”
Before begin writing your first Java program, you need to have your development environment ready. For writing and… ..
Count line word and characters in file
In this example we’ll see how to count line, word and characters in file. package com.javatechig; import java.io.BufferedRea..