Thread
#feed
    schleinzer.com

    schleinzer.com

    4 years ago
    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!
    d

    diesieben07

    4 years ago
    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."
    dalexander

    dalexander

    4 years ago
    Or mention the
    @JvmStatic
    annotation.
    schleinzer.com

    schleinzer.com

    4 years ago
    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?
    d

    diesieben07

    4 years ago
    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.
    schleinzer.com

    schleinzer.com

    4 years ago
    Fair enough... But mentioning top level functions in the explanation is a good idea! Thanks!
    Daniel

    Daniel

    4 years ago
    The question with what does var something = list.add(something) print... 😄 failed it!
    schleinzer.com

    schleinzer.com

    4 years ago
    Hehe... that one got me too during research 😉
    Alexander Khyzhun

    Alexander Khyzhun

    4 years ago
    @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

    4 years ago
    great initiative 🙂 enjoyed taking the quiz 😄
    orangy

    orangy

    4 years ago
    copy
    on a data class doesn’t create a deep copy.
    schleinzer.com

    schleinzer.com

    4 years ago
    Thank you so much for your feedback! Just integrated it and deployed improved version 🙂 Thanks again!
    matej

    matej

    4 years ago
    @schleinzer.com Really a tiny nitpick, but when you ask
    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
    schleinzer.com

    schleinzer.com

    4 years ago
    Good catch! Will go for the "var" solution not to "distract" from the core of the question 🙂 Thank you!