I realize that upcasting converts subclass to superclass while downcasting does so in opposite way. However, assuming there are different numbers of data types for subclass and superclass, does conversion from subclass->superclass->subclass makes part of data erase because some parts of data inside subclass is not included in superclass?
Because I know that floating points is erased when float types of data gets converted to int in c++, I am wondering if it works the same way for the class in java.