Observe the below code snippet:(Assume that class declaration is done properly and it is written in the main method)
int intValue = 100;
float floatValue = 100.0F;
double doubleValue = 100.0D;
char charValue = 100;
byte byteValue = 100;

dataType result = (intValue * byteValue + (doubleValue/floatValue)) * charValue;

Which of the following data types can be used in place of 'dataType' for the identifier 'result' for successful compilation of the program?

int

float

double

char

Correct Option - c

To get all Infosys Certified Java SE8 Developer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in