Computer Science, asked by anshu2051, 7 months ago

(b) Give reason whether the following assignments are correct or not. [2]

1. int a=10.90

2. String str=”true”​

Answers

Answered by aryanprasadblr
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