+ 1
Java vs. Kotlin: Which is the Better Option for Android App Development?
Just for knowledge
3 Respostas
+ 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.
+ 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.
0
Please use the seaechbar bevore ppsting duplicate questions.
This question has been asked many times and here are a few links for you.
https://www.sololearn.com/discuss/1703941/?ref=app
https://www.sololearn.com/discuss/1728608/?ref=app
https://www.sololearn.com/discuss/1765438/?ref=app
https://www.sololearn.com/discuss/1724830/?ref=app
https://www.sololearn.com/discuss/1771156/?ref=app
https://www.sololearn.com/discuss/1774924/?ref=app
https://www.sololearn.com/discuss/1771134/?ref=app