Can any one tellme why ClassCastException occure in java programs.
I would expect that you are trying to type cast one class into anotherwhich is not possible.