You have the following code.
class ExamPrep {
public static void main(String[] args){
int a = 5;
// LINE 4
}
static void printMessage(String message) {
System.out.println("Message = " + message);
}
}
What can you put at line 4 so that the output of the program will be Message = 5? Choose 2 correct answers. Each answer represents a complete solution.
A. printMessage(a);
B. printMessage(a.toString());
C. printMessage((String)a));
D. printMessage(String.valueOf(a));
E. printMessage(Integer.toString(a));