+ 4

Kotlin or java? Which is powerful??

4th Nov 2019, 7:11 PM
Jai Keerthick
Jai Keerthick - avatar
6 Réponses
+ 1
I prefer using Kotlin right now; there is a lot of power that comes with even just the extensions of the Java collections API. I do think that a good knowledge of Java is useful when using Kotlin, since much of the standard library works just fine with it. Kotlin is not bound to or built on top of Java either. The Kotlin compiler supports multiple targets, one of which is the JVM. It's more like a side-by-side relationship. Kotlin can transpile to JS, and also compile to native targets, though I don't know the specifics of that. The advantages of Java include massive industry support; point at any business and they are likely using Java in some way. This has also resulted in historical baggage and a slow development cycle (improving as of late). Some specific neat things: - Extensions on List<T> (map, windowed, associate, groupBy, etc.) - Type-safe builders - Coroutines (Project Loom will likely affect this) - Cleaner properties - when statement - Much nicer function types
12th Nov 2019, 4:23 AM
LunarCoffee
LunarCoffee - avatar
+ 3
I think Kotlin is better, someones said it requires 2 lines of Kotlin code to do same task than 50 lines of Java code. Also I'ven't heard anyone told Kotlin to be slower than Java.
4th Nov 2019, 7:19 PM
Seb TheS
Seb TheS - avatar
+ 3
Java
8th Nov 2019, 10:49 PM
melika.afrakhteh
melika.afrakhteh - avatar
+ 2
I think Java is better now But Kotlin has more perspectives to be more powerful in the future
4th Nov 2019, 8:44 PM
Lilit
Lilit - avatar
+ 2
Kotlin is powerful than java and it is null safe. I don't need anything more than that🏃
8th Nov 2019, 7:19 PM
Jai Keerthick
Jai Keerthick - avatar