+ 1

Java Or Kotlin

Should I learn Java or Kotlin I wanna be a game developer and I need to decided which programming language would be best for desktop AND mobile applications I need to know which one is faster and which is better equipped for the job.

2nd Aug 2018, 12:20 PM
Yusuf
Yusuf - avatar
2 ответов
+ 3
However I think it depends on the complexity of your game. If it is a tick tac toe complexity level game you could get away with java. If you are looking for a racing game, open world sandbox or similar complexity you might require to use the NDK. Complex games are usually developed with C++ using the NDK. So the question you should ask yourself is if you need to use NDK or the Android SDK is enough.
3rd Aug 2018, 11:46 AM
Maninder $ingh
Maninder $ingh - avatar
+ 1
Java and Kotlin are interchangeable, since they both compile to the same bytecode and run on the same JVM. Performance is not an issue, it's only purely a matter of syntax. Java is more explicit in terms of syntax, that means you'll have to write more code to do something simple, it is however more understandable to beginner programmers. Kotlin is more streamlined, this means that you'll be coding a lot less and making you more productive, but you sometimes might not fully understand the syntax you're writing.
2nd Aug 2018, 12:55 PM
apex137
apex137 - avatar