I read this post here that allows us to tell us what data type the object entails. Is there a way to do that with primitive data types? Does that mean I would have to autbox the variable then apply some method to it? For instance:
float d1 = 10;
float d2 = 10.1f;
double d3 = d1 + d2;
Is there a way for me to print d3
's data type?
TIA