How to avoid class cast Exception in Java?

Many time we might see class cast exception while execution of our code. In order to avoid this exception we need to use instance...

Polymorphism in Java

Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent...

Final object in Java

Subject: Final Object in Java We cannot reinitialized Final Objects in Java. For Example: See the below code class P{ int i ; } class Manager{ public static void main(String...

Difference between String class and String Buffer/ String Builder class in Java

  Subject: In this post we will learn , difference between String class and String Buffer/ String Builder class in Java. String objects are immutable while...

Difference between String Buffer and String Builder

Subject: In this article we will learn difference between String Buffer and String Builder String Buffer was introduced in JDK 1.0 and it is synchronized....

In this tutorial we will learn JDBC INSERT statement

Subject: In this tutorial we will learn JDBC INSERT statement Inserting data into a SQL database table is a simple two-step process: First we need to...

Follow us on Facebook

Facebook Page Loading...