Read From File In Java

To read a text file, we use FileReader and wrap it in a BufferedReader. In the below example, we read a file named “FileToRead.txt” which…

Print In Java | Java Tutorial

We use print in java to output required text directly to the console of IDE. Let’s see the syntax of print in java and the…

Polymorphism in Java | Java Tutorial

Polymorphism allows us to perform a task in multiple ways. Let’s break the word Polymorphism and see it, ‘Poly’ means ‘Many’ and ‘Morphos’ means ‘Shapes’.…

Method Overriding In Java

Method Overriding: (Dynamic Polymorphism/Run time polymorphism) Declaring a method in child class which is already present in the parent class is called Method Overriding. In…