Kotlin for Java developers quiz

  1. Kotlin is ___ interoperable with the Java programming language.
  2. True or false? The conversion process in Android Studio produces functionally equivalent Kotlin code that compiles and runs.
  3. Match the descriptions of how Kotlin generates in JVM bytecode with the correct annotations.

    Cada respuesta coincide con solo un elemento.

    Generates static members and methods

    Generates overloaded methods for functions that have default values

    Changes the name of getters and setters

    Exposes a property directly as a field, rather than via getters and setters

    Declares checked exceptions

  4. What are different ways you can incorporate Kotlin into an existing Android app written in the Java programming language?

    Selecciona todas las respuestas que consideres correctas.

  5. Which of the following statements are true in regards to Kotlin providing null safety?

    Selecciona todas las respuestas que consideres correctas.

  6. Assume you have declared a function in Kotlin that contains default values for all three of its parameters. Which of these statements are true about calling such a function?

    Selecciona todas las respuestas que consideres correctas.