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
πŸ’¬ Discuss
βœ… Correct Answer: (A) 4.0

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
230
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
99%
Success Rate