Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(a) Which three languages are officially endorsed by Google for developing Andro

ID: 3887769 • Letter: #

Question

(a) Which three languages are officially endorsed by Google for developing Android applications? (b) The name of one of these languages begins with the letter K, so we'll call it the K-language. Is the K-language typically implemented via compilation, pure interpretation, or does it have a hybrid implementation? (c) In which country was the K-language developed? (d) The K-language distinguishes between "nullable" and "non-nullable" types. Explain this distinction. (e) In the K-language, variables can be declared using either the keyword val or the keyword var. Explain the difference between the two.

Explanation / Answer

A.) java, C++ and kotlin are officially endorsed by Google for developing Android apps.

B.) kotlin has a hybrid implementation as runs on the Java virtual machine and also can be compiled to JavaScript source code or uses the LLVM compiler infrastructure.

C.) It was developed in Saint Petersburg, Russia by jetbrains.

D.) Kotlin makes a distinction between nullable and non-nullable datatypes. There is no concept of NullPointerException in kotlin. All nullable objects must be declared with a "?" postfix after the type name. Operations on nullable objects need special care from developers: null-check must be performed before using the value.

E.)In kotlin, var is like general variable and its known as a mutable variable and can be assigned multiple times.

val is constant variable and is immutable and can be initialized only one time.