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
Social Sciences,
4 months ago
India Languages,
9 months ago
Accountancy,
9 months ago
Chemistry,
1 year ago