* ArrayList and LinkedList are part of java.util.collections framework and Maps are part of java.uti ... Read More
There are two ways to compare objects of a list .First one is to use compareTo method and for that w ... Read More
* Arraylist is a class that inherits the List interface * To define a list ---> ``` ArrayList< ... Read More
If we have multiple catch blocks for a try block we can even catch both exceptions in one catch bl ... Read More
Replaces any numbers with x ``` System.out.println("abCdeFGH123456789".replaceAll("[0-9]", ... Read More
Here we will learn how to write data in binary format. In the earlier post we learned how to write ... Read More
Try with resources is available since java 7. So in order to use try with resources we need to go to ... Read More
Generics are used to create classes, interfaces and methods that take types and parameters and thes ... Read More
Access modifiers and Scope Types of access modifiers 1.Public - can be accessed in any Class ... Read More
We can even create our own exception class in java. Our own exception class should always extend Ex ... Read More