Possible Software to Be Used (Cont.)


Java and Kotlin are two major languages for Android app development. The decision between Java and Kotlin depends on your comfort level and career goals, and this course and exams only cover Java because we do not want to learn another language, Kotlin.

While Kotlin offers modern features and capabilities for Android development, Java remains a solid choice with strong community support. It is crucial to stay updated with the latest technologies and adapt to the evolving landscape of technology.

Android Java
While most Android applications are written in Java-like language, there are many differences between the Java API and the Android API. A code snippet of Android Java is given on the right side:
public class MyClass {
  private int myField;
  public MyClass( int myField ) {
    this.myField = myField;
  }
  public int getMyField( ) {
    return myField;
  }
  public void setMyField( int myField ) {
    this.myField = myField;
  }
}

Android Kotlin
Kotlin has a more concise and readable syntax compared to Java. For example, creating a class in Java requires more boilerplate code, while in Kotlin, it can be done in a single line:
class MyClass( private var myField: Int ) {
  fun getMyField( ) = myField
  fun setMyField( value: Int ) {
    myField = value }
}




      Idle hands are the devil’s tools.