HashMap is a Map based collection class that is used for storing Key & value pairs, it is denoted as HashMap
Popular Post: Java
A HashSet is a collection of items where every item is unique, and it is found in the java.util package
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.
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.
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.
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.
A thread is actually a lightweight process. Unlike many other computer languages, Java provides built-in support for multithreaded programming.
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.
In this tutorial, you will learn how to handle files in Java. Java has several methods for creating, reading, updating, and deleting files.
To create a file in Java, you can use the createNewFile() method. This method returns a boolean value: true if the file was successfully created, and false if the file already exists.
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.
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.