Author: Prasad Kharkar

Prasad Kharkar is a java enthusiast and always keen to explore and learn java technologies. He is SCJP,OCPWCD, OCEJPAD and aspires to be java architect.

runtime polymorphism in java

Hello all, in previous article we learned about compile time polymorphism and how it is used in method overloading. In this article we will see about runtime polymorphism. Runtime polymorphism is achieved using method overriding. Rules for method overriding are…

Compile time polymorphism

In this article we are going to learn about compile time polymorphism in java. An example of polymorphism is method overloading. i.e. the same method name can be used for multiple purposes. compile time polymorphism can be achieved using method…

final variables in java

Hello all, We all know that the value of final variables cannot be changed in java. Consider following code

We are changing the value of someNumber here so obviously compilation is not successful as it is  final  variable and cannot be changed.…

static variables in java

Hello all, In this article we are going to see the behavior of static variables and how are they different from non static variables. We will first see some key points about them. static variables are bound to a class…

JAXB : jaxb and collections

JAXB and collections In the previous part of this series, we learned about Marshalling and Unmarshalling using JAXB for simple objects. In this part we are going to see how to deal with jaxb and collections. Consider we have a scenario,…

Generics: The wildcard operator

In the previous part of this tutorial, Polymorphism with generics we have learned the shortcomings of generics while using polymorphism with it.In this part, we are going to overcome them using wildcard operator. Please read this article before continuing. Vehicle…