I believe it is just a matter of preference, but I think it’s helpful that Kotlin enforces the mandatory brackets to help with readability. Which of the two programming languages would you rather go with?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If your goal is to learn Android Development and make apps right away at your new job or current job then learn Kotlin. Why? The idea is to build an mobile app not to learn which language. However, if you are trying to get a job then you need to know where you are applying and if they need java or kotlin. There is a lot of code been developed in the last 10 years for android using java so whoever have invested in java will need someone who knows how to maintain java even though they want to migrate to kotlin.
Kotlin will not necessarily make your android app work any faster or more optimized rather it will make it a bit cleaner with less code. In fact kotlin is java! But with extreme facelift! If you actually decode any compiled kotlin code you will see it is actually java code. Just Google how to decode kotlin code and you will know what I mean. I would suggest to learn Kotlin if you are starting as you will see yourself that you will ditch your java experience as many if not all android app Development companies are shifting to kotlin.
From an employability perspective, Java is a clear winner, as the majority of the industry’s apps are built on Java, so they will need people who understand the language and are proficient in it.
However, Kotlin is a very exciting new language on the scene, and I can say from personal experience it is a joy to make Android apps in. What I would say is that the transition from Java to Kotlin will be far easier than the transition from Kotlin to Java, if you intend to learn both eventually.
Kotlin is very nice in regards to getting rid of “boiler-plate” code that you get with Java, and with the use of libraries like Anko, it can cut lines of code to do the same thing by about 40% when compared to Java. In addition, it’s 100% inter-operable with Java, so for example in my uni I’m developing an Android game using both Kotlin and Java classes.