Search code examples
androidiosflutter

Kotlin vs Java : What to choose when starting a new Flutter project?


When starting a new Flutter project in Android Studio, it gives you the choice of android language between Java or Kotlin. so the question is:

Is my choice affecting any type of performance or compatibility? Application size or Error-handling ? Is there any difference at all ?

Same goes for Objective-C vs Swift ?


Solution

  • My recommendation is to go for Kotlin in Android and for iOS go for Swift.

    One of the best reasons is that Google and Apple recommend and prefer these languages.

    Secondly, Kotlin is a very optimized language so it reduces the code and makes your Dart file more clear to understand.

    Thirdly, Kotlin supports multiple platforms where Java has some limitations in it.

    But at the end both languages are very useful for developing a single app.

    Note: If you start application development in native Android, first go for Java language. Then you have to learn about Kotlin because Java is the base of native Android.