Question: Question 6 What is wrong with this Java statement? int score = 85.3; O A Java variable can only store a value of it's type

Question 6 What is wrong with this Java statement? int score = 85.3; O A Java variable can only store a value of it's type O the value should be in quotes O the data type declaration is not required Question 7 What is wrong with these Java statements? String rapperName = "Cardi B"; String rapperName = "The real Cardi B"; There can be only one Cardi B O A variable's data type can't be declared twice The variable should be defined as a 'char' data type Question 8 What is wrong with this Java statement? public static computeGrade(int score) { return score 4 / 100; O method name must begin with a capital letter the method does not indicate the date type it returns O grade computation must be stored to a variable before the return statement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
