A

Admin • 825.56K Points
Coach

Q. What is the output of the Java program?

Code:
String name="dino";
if(name == "dino")
System.out.print("DINO");
System.out.println("GOOD");
  • (A) DINO GOOD
  • (B) DINO
  • (C) GOOD
  • (D) Compiler error
  • Correct Answer - Option(C)
  • Views: 8
  • Filed under category Java
  • Hashtags:

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.

Be the first to start discuss.