Vidyalelo
Computer Science · Q185

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 185

Q185

How do we throw an exception in Kotlin?

A.
throw Exception()
Answer
B.
raise Exception()
C.
Exception.throw()
D.
None of the above

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board