How to Switch Between Multiple Java Versions On Ubuntu Linux ?

Switch Java Version

If you have installed multiple JDK on ubuntu and sometimes you might need to change the version … Read more

Byte Array To Integer And Integer to Byte Array Conversion using JAVA

If you are working in some network related data transfer like sending some commands over socket, then … Read more

How to check if Filepath is Normal File or Directory in JAVA ?

In our previous post, we seen how to identify if a file is present or Not using … Read more

How to generate random number between two numbers in Java ?

This post demos how you can get the random number between two numbers in a simple java … Read more

How to use Single Instance Class / Singleton class in Android / Java ?

The single instance classes are mostly used when you don’t know how to create a object of … Read more

Convert Byte Array to Hex using Java

The post briefs above how you can convert byte Array to Hex values and print those on … Read more

Java Native Interface ( JNI ) Example , Calling Native C functions from JAVA

The Java Native Interface (JNI) establishes a well-defined and platform-independent interface between the JAVA and Native C … Read more

How to Install Java using apt-get command on Ubuntu ?


Installing JAVA on ubuntu can be done using following easiest command. for Ubuntu 20.04, this command installs … Read more

How to check if File Exists in JAVA ?

If you want to check whether certain file is present or not in your disk before proceeding … Read more