Computer Science, asked by atharvsachan, 9 months ago

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 Anonymous
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 Anonymous
2
boolean p = false

hope it helps!
plz follow me and mark me as brainliest answer
Similar questions