Hi ,
While practicing with Collections , i got a ClassCastException , so when searching for the reasons of getting ClassCastException i found this one :
A class cast exception results when the following conditions exist and can be corrected by the following actions:
* The type of the source object is not an instance of the target class (type).
* The class loader that loaded the source object (class) is different from the class loader that loaded the target class.
* The application fails to perform or improperly performs a narrow operation.
(This is taken from IBM tutorials)
Please tell me something about the second point as my question is how many classloaders will be present in a
Java Application (I am not using any server or not using any custom classloaders ).
Thank you .