Identify Datatype.

Q7. Given the following set of identifiers:

byte b;

char ch;

short sh;

int intval;

long longval;

float fl;

Identify the datatype of the following expressions:


b.) intval * longval – ch  

c.) fl + longval / sh


a.) int because

b.) long because

c.) float because

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: