Which one among the following assignment statements is correct?
(1 Point)
String s = 'Computer';
float f = 0.5;
float g=2.5f;
boolean p = "false";
Answers
Answered by
14
Answer:
boolean p = " false " ;
THIS IS THE WRONG ASSIGNMENT STATEMENT..
Explanation:
REASON : ANYTHING WHICH IS IN DOUBLE QUOTE IS A STRING
Hope it helps..
Have a nice day..
: )
Answered by
2
boolean p = false
hope it helps!
plz follow me and mark me as brainliest answer
hope it helps!
plz follow me and mark me as brainliest answer
Similar questions
English,
3 months ago
Political Science,
3 months ago
India Languages,
7 months ago
Accountancy,
7 months ago
Chemistry,
10 months ago
Math,
10 months ago
Math,
10 months ago