Kotlin for Java developers quiz 경로로 돌아가기 Kotlin is ___ interoperable with the Java programming language. 50% 90% 98% 100% True or false? The conversion process in Android Studio produces functionally equivalent Kotlin code that compiles and runs. True. False. Match the descriptions of how Kotlin generates in JVM bytecode with the correct annotations. 각 답변은 일치하는 항목이 하나만 존재합니다. Generates static members and methods @JvmField @Throws @JvmName @JvmStatic @JvmOverloads Generates overloaded methods for functions that have default values @JvmField @Throws @JvmName @JvmStatic @JvmOverloads Changes the name of getters and setters @JvmField @Throws @JvmName @JvmStatic @JvmOverloads Exposes a property directly as a field, rather than via getters and setters @JvmField @Throws @JvmName @JvmStatic @JvmOverloads Declares checked exceptions @JvmField @Throws @JvmName @JvmStatic @JvmOverloads What are different ways you can incorporate Kotlin into an existing Android app written in the Java programming language? 적절한 답변을 모두 선택합니다. Add a new Kotlin class to your project (for example, a new Activity). Migrate a portion of your app to Kotlin. Write new tests in Kotlin. Move utility methods to Kotlin extension functions. None of these choices apply. Which of the following statements are true in regards to Kotlin providing null safety? 적절한 답변을 모두 선택합니다. Null does not exist in Kotlin. By default, Kotlin variables can't hold null values. If you want a variable to hold a null value, use ? on the data type to specify that it is of a nullable type. In Kotlin, null means 0 for integers or empty string for strings. Use the safe call operator ?. as a convenient way to check if a property is null before continuing to evaluate the expression. 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? 적절한 답변을 모두 선택합니다. You can call the function with no arguments. You can call the function and use named arguments. You can call the function with all arguments present. The function declaration won’t compile, so you cannot call this function. 답변 제출 error_outline 퀴즈를 채점하는 중에 오류가 발생했습니다. 다시 시도해 주세요.