What will be the output when the following code is compiled and run? public class Test { public static void main(String args[]) { int i; i = 3; System.out.println((int) i * 2.5 / 3.0); } }
Correct Answer: The code will print 2.5.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Java MCQ Questions