java

Java tutorial || Overriding toString() method in Java.

toString() method in Java. toString() is a method of Object class. an Object is a superclass of every class in Java. toString() method returns the string representation of the object. Sometimes we need to override toString() method. so the question is that why we need to override the toString() method in Java. Let’s try to …

Java tutorial || Overriding toString() method in Java. Read More »

String class in java with interview questions and answers

String class in java and its methods. A string is a class from lang package. Which is public and final class extends Object class and implements Serializable, Comparable<String>, CharSequence interface.  String Class in Java is immutable class. It means once you create an object of String class. It will not be modified read more about immutable String. Some …

String class in java with interview questions and answers Read More »

Exception handling in java with interview questions and answers.

If you developing any kind of application using Java. So there are lots of chances to get an exception in your application. To write code exception free and make a standard flow of code java provide a very strong mechanism called Exception handling. So in this tutorial, we are going to focus on what is Exception handling …

Exception handling in java with interview questions and answers. Read More »

Constructor in java with interview questions and answers.

As we discussed in the previous tutorials what is oops concept like. classes and object, inheritance, polymorphism, encapsulation, abstraction in java. In this tutorial, we will focus on constructor in java but before the start, If you are new to java please have a look at class and object tutorial. What is the constructor in …

Constructor in java with interview questions and answers. Read More »

Polymorphism in java with interview questions and answers

One the most important oops concept is the polymorphism. polymorphism means the same name or interfaces with multiple forms. So what is the polymorphism in Java, what is the use of polymorphism in java? how to achieve this in Java and at the end we will discuss some interview questions and answers based on polymorphism in java. …

Polymorphism in java with interview questions and answers Read More »