+ 1

Java vs. Kotlin: Which is the Better Option for Android App Development?

Just for knowledge

5th May 2019, 3:15 PM
Neeraj kumar
Neeraj kumar - avatar
3 ответов
+ 1
Java is not going anywhere any time soon I believe. Kotlin is a nice choice though, as it adresses some things in Java that can be annoying/unintuitive. There is no reason really not to use both of them. Kotlin is easy to learn if you are already working with Java.
5th May 2019, 4:01 PM
{ 𝄋 ℒ 𝄋 }
{ 𝄋 ℒ 𝄋 } - avatar
+ 1
Kotlin fixes a series of issues that Java suffers from: Null references are controlled by the type system. No raw types Arrays in Kotlin are invariant Kotlin has proper function types, as opposed to Java's SAM-conversions Use-site variance without wildcards Kotlin does not have checked exceptions What Java has that Kotlin does not Checked exceptions Primitive types that are not classes Static members Non-private fields Wildcard-types Ternary-operator a ? b : c What Kotlin has that Java does not Lambda expressions + Inline functions = performant custom control structures Extension functions Null-safety Smart casts String templates Properties Primary constructors First-class delegation Type inference for variable and property types Singletons Declaration-site variance & Type projections Range expressions Operator overloading Companion objects Data classes Separate interfaces for read-only and mutable collections Coroutines In my personal opinion I will take Kotlin,it is also easier to write insite it.
6th May 2019, 2:13 AM
Nedim Karavdić
Nedim Karavdić - avatar