HOT SPOTS
Sun Certified Programmer for the Java 2 Platform Quiz #1
Page 4 of 21
Question 4:
What results from attempting to compile and run the following code?
public class Ternary
{
public static void main(String args[])
{
int a = 5;
System.out.println("Value is - " + ((a < 5) ? 9.9 : 9));
}
}