Multiple Choice
Consider the following code snippet: double salary = 45000.00;
String sal = "Current salary is " + salary;
Which of the following statements is correct?
A) The toString() method of the Object class is being used to set the value of salary.
B) The toString() method of the Double class is being used to set the value of salary.
C) No toString() method is being used to set the value of salary.
D) This code will not compile.
Correct Answer:

Verified
Correct Answer:
Verified
Q11: Consider the following code snippet: public class
Q12: Consider the following code snippet: public class
Q14: Consider the following code snippet: Employee programmer
Q15: Consider the following class hierarchy: public class
Q18: The _ reserved word in a class
Q19: Consider the following code snippet: public abstract
Q21: Consider the following code snippet: public class
Q74: All rodents are mammals and all canines
Q82: Which of the following indicates that a
Q94: What must a subclass do to modify