Popular Post: Java

HashMap in Java

HashMap is a Map based collection class that is used for storing Key & value pairs, it is denoted as HashMap or HashMap.

HashSet in Java.

A HashSet is a collection of items where every item is unique, and it is found in the java.util package

Iterator in Java.

In Java, Iterator is an interface available in Collection framework in java.util package. It is a Java Cursor used to iterate a collection of objects.

Wrapper classes in Java

A Wrapper class is a class whose object wraps or contains primitive data types. When we create an object to a wrapper class, it contains a field and in this field, we can store primitive data types.

Exception Handling in Java.

The Exception Handling in Java is one of the powerful mechanism to handle the runtime errors so that the normal flow of the application can be maintained.

What is a Regular Expression in Java

A regular expression is a sequence of characters that forms a search pattern. Regular expressions can be used to perform all types of text search and text replace operations.

Java Lambda Expressions

Lambda expression is a new and important feature of Java which was included in Java 8. It provides a clear and concise way to represent one method interface using an expression.

How to handle file in Java.

In this tutorial, you will learn how to handle files in Java. Java has several methods for creating, reading, updating, and deleting files.

How to read file in Java.

There are many available classes in the Java API that can be used to read and write files in Java: FileReader, BufferedReader, Files, Scanner etc.

How to delete a file in Java.

In Java, we can delete a file by using the File.delete() method of File class. The delete() method deletes the file or directory denoted by the abstract pathname.