https://kotlinlang.org logo
#feed
Title
# feed
s

schleinzer.com

03/07/2018, 5:03 PM
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

diesieben07

03/07/2018, 5:31 PM
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

dalexander

03/07/2018, 5:36 PM
Or mention the
@JvmStatic
annotation.
👍 2
s

schleinzer.com

03/07/2018, 6:34 PM
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

diesieben07

03/07/2018, 7:16 PM
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

schleinzer.com

03/07/2018, 7:24 PM
Fair enough... But mentioning top level functions in the explanation is a good idea! Thanks!
d

Daniel

03/07/2018, 8:26 PM
The question with what does var something = list.add(something) print... 😄 failed it!
s

schleinzer.com

03/07/2018, 8:48 PM
Hehe... that one got me too during research 😉
a

Alexander Khyzhun

03/07/2018, 10:04 PM
@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

rakeeb

03/08/2018, 4:33 AM
great initiative 🙂 enjoyed taking the quiz 😄
o

orangy

03/08/2018, 8:00 AM
copy
on a data class doesn’t create a deep copy.
s

schleinzer.com

03/08/2018, 3:18 PM
Thank you so much for your feedback! Just integrated it and deployed improved version 🙂 Thanks again!
m

matej

03/09/2018, 2:57 PM
@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

schleinzer.com

03/09/2018, 5:05 PM
Good catch! Will go for the "var" solution not to "distract" from the core of the question 🙂 Thank you!
5 Views