Home / Programming MCQs / JAVA MCQs / Question

R

Ram Sharma • 188.81K Points
Coach

Q. What is the output of the following Java Code?

Code:
int a=9;
float b = a/2;
System.out.println(b);
(A) 4.0
(B) 4.5
(C) 5.0
(D) None of the above

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.