Advertisements
Advertisements
प्रश्न
Give reason whether the following assignment is correct or not.
String b = "true";
थोडक्यात उत्तर
उत्तर
This assignment is correct since "true" is a string literal, not a boolean literal, and it is contained in double quotes. It was correctly assigned to the String variable.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.03: Values and Data Types - EXERCISES [पृष्ठ ३३]