Q211
How do you declare a String in Kotlin?
A.
val str: String = "Hello, World!"
AnswerB.
String str = "Hello, World!"
C.
val str = String("Hello, World!")
D.
String str = new String("Hello, World!")
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board