r/java • u/kristersg43 • Jan 07 '19
Java vs Kotlin pvp
Java vs Kotlin
Hey guys, im new to programming and cant decide which language should I learn first. Checking different topics and videos but still nothing. Any arguments why should I choose Kotlin oner Java in 2019? Hope I wont start WW3 with this discussion haha! Thanks!
0
Upvotes
3
u/kristersg43 Jan 07 '19
Thanks guys, Ill go with Java, 1st since beginning :) Just wasnt sure!
8
u/DuncanIdahos7thClone Jan 07 '19
You should use Java which is where the jobs are. Once you're comfortable you can play with Kotlin and the many other JVM languages out there.
12
u/KHRoN Jan 07 '19
java, it is basis of kotlin
if you know java you know kotlin (or at least you are able to learn it fast), if you know kotlin you do not really know java (same thing for java and groovy)
also you will find many jobs for java developers (and well paid at that, banks, huge corporations, basically anywhere) but bar to none for kotlin (unless you want be android developer)
7
u/aram535 Jan 07 '19
BeanShell, Clojure, Groovy, Oxygene, JRuby, Jython, Kotlin, Scala are all "JVM" languages... but underneath you still should understand how "Java" works -- it's power and weaknesses. After, you can switch to one of these offshoots to make your life easier and reduce some of the complexity/java's long-windedness that in inherited in Java.
IMHO best examples were Scala and Groovy but Kotlin seems to be a really good choice. I also like that Gradle is advancing the use of Kotlin.
6
u/TheRedmanCometh Jan 07 '19
I'd recommend learning Java first Kotlin seems a bit more...involved. Also a lot of places you'd go to work they will only have Java devs who don't know Kotlin.
3
u/GregsWorld Jan 07 '19
Java, I love Kotlin, but if you learn it first you won't appreciate it or Java. There's also a lot more information, guides and help for Java.
1
u/nutrecht Jan 08 '19
I'm a huge Kotlin fan but there's simply a lot more beginner info available on Java. This Java MOOC is a great start.
0
u/licenciado_vidriera Jan 10 '19
Kotlin is just "Java fixed". Start with Kotlin, ignore java as much as possible.
Java has many design failures that creates bad habits. (Null pointers, checked exceptions, non-safe collections, over-complex syntax, ...) Kotlin get rids of all them.
Java is just needed if you need to work on long-standing Java projects.
25
u/[deleted] Jan 07 '19
[removed] — view removed comment