What is the Java equivalent of following C++ code?
float f=12.5f; int& i = reinterpret_cast<int&>(f);
what is the difference between typecasting and typeconversion in c++ or java ?
Is there a connection between how casting is done and the concept of polymorphic behaviour?
I have some C++ code I'm trying to port to Java, that looks like this:
struct foostruct { unsigned char aa : 3; bool ab : ...
I get in my function message array of bytes and type of object, I need to restore object from bytes. Is there in Java any cast like in C++ ? ...