Computer Science, asked by babluoooo, 1 year ago

show result feature with flow lines
int+char/byte;

Answers

Answered by Rajdeep11111
4
HEYY THERE!!

If you are talking about JAVA, then your answer is right here:

Type conversion is the phenomenon in which the lower datatypes are converted to their higher types in a hierarchical order. The order of hierarchy is as follows:

byte
char
short
int
long
float
double

Hence, double is the highest type!

Given:
int + char / byte;

It is clear that int is the highest type among the three. char is the second highest and byte is the third one.

Refer to the attachment for the picture!!

The resulting type will be integer type.

THANKS!
Attachments:

Anonymous: Great! As expected... :-)
Rajdeep11111: :)
Similar questions