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.

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…

Generics: Polymorphism with generics

In An Introduction To Generics we learned about declaring and using generics. In this part of the tutorial we are going to learn polymorphism with generics. Consider this declarations.

List is the base type. String is the generic type ArrayList