Convert bytes to KB,MB and GB using Java Program

In many cases, we might get the memory or size of the file/table in bytes.The simple java program can able to convert the bytes to KB,MB and GB using traditional way of calculation.

Java Program to convert bytes to KB,MB and GB

Output: