What is the answer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

What is the answer?

Which statements are true? constants should be assigned a value when declared readonly fields can be initialized by the constructor constants can be initialized by the constructor readonly fields can be initialized only when declared

19th Feb 2019, 9:10 PM
FirstSoloKiller
FirstSoloKiller - avatar
5 Answers
+ 8
Please don't send spam.
20th Feb 2019, 1:38 PM
FirstSoloKiller
FirstSoloKiller - avatar
20th Feb 2019, 1:39 PM
FirstSoloKiller
FirstSoloKiller - avatar
+ 1
First one is true Second one is true Third one is false Fourth one is false
25th Jan 2020, 11:20 AM
Artemis Ariamehr
Artemis Ariamehr - avatar
- 1
Dude, we are not here to answer your lesson quiz, if you don't know the answer then you probably didn't learn well. Delete the question.
20th Feb 2019, 7:14 AM
Eldar Bakerman
- 1
first one and second one is true constant initialized before runtime read only variable can initialize directly and in constructor
1st Mar 2019, 10:34 PM
Artemis Ariamehr
Artemis Ariamehr - avatar