1. When the following sequence of statements executes, what is displayed?
double length = 5.0;
double width = 8.5;
System.out.println("Length: " + length);
System.out.println("Width: " + width);
System.out.print("Area: ");
System.out.println(length * width);
2. Which of the following are literals?
count, 'a', 7.5, letter, 10, salesTax
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here