(b) Give reason whether the following assignments are correct or not. [2]
1. int a=10.90
2. String str=”true”
Answers
Answered by
1
Answer:
no the first one is float or decimal and cannot be set as int
while second one is correct as anything between "and" will always be a string
so 1. Incorrect
2. correct
pls mark me braniliest if you think I am correct
Similar questions