Question: Question 9 What is wrong with this Java method? public static String getRapper Name() { return Your rapper name: + rapperName; } O the String

Question 9 What is wrong with this Java method? public static String getRapper Name() { return "Your rapper name: + rapperName; } O the String data type is not required since the method does not have a para studentName is not defined String concatenation only works with literal strings Question 10 What is wrong with this Java method? public static String getRapper Name (rapperName) { return "Your rapper name: " + rapperName; } Data type for the input parameter is missing rapperName is being redefined in the method value being returned doesn't match the method's return data type
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
