Hi, I just released the Kotlin Quiz - <https://Ko...
# feed
s
Hi, I just released the Kotlin Quiz - https://KotlinQuiz.com - and would be very happy if you could give it a try and tell me how you like it - and even more so, contact me if you find any errors or would like to suggest new questions. Thank you!
๐Ÿ‘ 2
๐Ÿ‘ 6
d
Good work! One suggestion: I would reword the "static method" question. Kotlin does not have static methods so the only answer to "How do you write a static method in Kotlin?" would be "You don't, they do not exist."
๐Ÿ‘ 3
d
Or mention the
@JvmStatic
annotation.
๐Ÿ‘ 2
s
Thanks a lot for your feedback! I should rather say something like "what would be the equivalent to a static method in Java?". How does that sound?
๐Ÿ’ฏ 1
d
Sounds good, although in that case you should also mention top level functions. The problem is that there is no single right answer to this.
s
Fair enough... But mentioning top level functions in the explanation is a good idea! Thanks!
d
The question with what does var something = list.add(something) print... ๐Ÿ˜„ failed it!
s
Hehe... that one got me too during research ๐Ÿ˜‰
a
@schleinzer.com Hello, good job, buddy! I just wanted to say that if you can manage time for the answer for different questions then try to review some questions, because on my opinion you need more time for some questions
r
great initiative ๐Ÿ™‚ enjoyed taking the quiz ๐Ÿ˜„
o
copy
on a data class doesnโ€™t create a deep copy.
s
Thank you so much for your feedback! Just integrated it and deployed improved version ๐Ÿ™‚ Thanks again!
m
@schleinzer.com Really a tiny nitpick, but when you ask
Copy code
What is the equivalent of the following Java expression in Kotlin?

int x = a ? b : c
Technically, either the Java code should be
final int x = a ? b : c
or the offered Kotlin equivalents should all be
var
instead of
val
s
Good catch! Will go for the "var" solution not to "distract" from the core of the question ๐Ÿ™‚ Thank you!