MCQs > IT & Programming > Java > For the given variables, which will compile without an error? char c = 'c'; int i = 50; double d = 80; long l = 200; String s = 'Goodbye';

Java MCQs

For the given variables, which of the following will compile without an error?

char c = 'c';
int i = 50;
double d = 80;
long l = 200;
String s = "Goodbye";

Answer

Correct Answer: s+=i;

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it