I can understand what upcasting is but Downcasting is a little confusing. My question is why should we downcast? Can you help me with a real time example ? Is downcasting th
With the introduction of generics, it is less important than it was before, but there are times when you need it.
For instance, when you read an object from an ObjectInputStream.