Java Tutorials


Stack implementation in Java using Array

This page will walk through custom Stack implementation in Java using Array. The Stack is a linear data structure which […] Continue reading »

Best practices to avoid NullPointerException in Java

In this tutorial, we will discuss the best practices to avoid or handle NullPointerException in Java. NullPointerException generally threw when […] Continue reading »

Check HashSet contains element case insensitive in Java

In this example, we will show you how to check HashSet contains element case insensitive in Java. contains() method of […] Continue reading »

How to unmarshal/parse XML file using JAXB in Java

This page will walk through How to unmarshal/parse XML file using JAXB in Java. JAXB stands for Java Architecture for […] Continue reading »

How to find distinct elements in a list in Java

Java 8 introduced distinct() method in Stream interface to find the distinct element in a list. distinct() method returns a stream […] Continue reading »

Java 8- How to replace word in a File using Stream

On this page, you will learn how to find and replace words in a file using Java Stream. Java introduced […] Continue reading »

How to get free, usable, and total disk space in Java

On this page, you will learn how to get free, usable, and total disk space in Java.  Java introduced getFreeSpace(), getUsableSpace(), […] Continue reading »

Listing computer drives and its type using Java

In this tutorial, you will learn how to list all computer drives and its type using Java programme. In Java, […] Continue reading »

Java method Overloading and Overriding example

On this page, you will learn Java method overloading and overriding example. Method overloading and overriding covers the Polymorphism concept in […] Continue reading »

Top 5 IDE for Java Developer

In this tutorial, we will discuss Top 5 IDE for Java Developer. If you want to start your career in […] Continue reading »

Java hashCode() and equals() methods example

In this tutorial, we show you how to implement the Java hashCode() and equals() methods. These two method helps to […] Continue reading »

1 5 6 7 8 9 11