+ 3

Develop Cross-Platform and Web apps with Java or Kotlin?

I was starting to learn Kotlin, as a beginner in programming, in order to develop an app for a school project. Because in my school there are Android and iOS users, I have to develop a cross platform app, since I do not have time to learn switch and Objective C is a bit too difficult for now. I did some research and many suggest starting with Java, instead of Kotlin... I would need a language that is crossplatform (as Kotlin) but can be used for Web apps too. Which language should I learn first? Thanks!

25th Mar 2018, 1:29 AM
David Wicker
David Wicker - avatar
9 Answers
+ 8
If you can do it in Java, technically it can be done in Kotlin since the language operates on the Java virtual machine. In any case with Java you can do web development (Spring) and you can develop for Android and perhaps for IOS (check the link at the end). With Kotlin you could do a little more in web development, since you can use Kotlin JS, but I really do not think the difference is much. https://medium.com/@mateusz_bartos/write-ios-apps-in-java-along-with-android-900d6013f83f
25th Mar 2018, 1:39 AM
Mickel
Mickel - avatar
+ 4
They both runs in java virtual machine. You can use java libraries with kotlin. I've heard that with kotlin you need 40% less code than with java and that you could also compile it to javascript. Try it. it's newer and probably more used on the future.
25th Mar 2018, 1:41 AM
Toni Isotalo
Toni Isotalo - avatar
+ 3
You can use javascript on unity
25th Mar 2018, 1:43 AM
Toni Isotalo
Toni Isotalo - avatar
+ 1
I think for a cross platform app, itā€™s easier to use a game engine, like Unity or Unreal Engine because it makes sure that the same program works for both and you donā€™t have to worry about compatibility or the features of the phone/os
25th Mar 2018, 1:35 AM
Ariela
Ariela - avatar
+ 1
No C# in unity (which is almost the same as java, like there were lawsuits because everyone thought C# copied java)
25th Mar 2018, 1:37 AM
Ariela
Ariela - avatar
+ 1
Unreal uses a visual scripting language (which is really easy to learn) and/or C++
25th Mar 2018, 1:37 AM
Ariela
Ariela - avatar
+ 1
Thank you Mickel!
25th Mar 2018, 1:41 AM
David Wicker
David Wicker - avatar
0
Thanks, Is Java used to program in Unity or Unreal Engine?
25th Mar 2018, 1:36 AM
David Wicker
David Wicker - avatar
0
Thank you Tony
25th Mar 2018, 1:42 AM
David Wicker
David Wicker - avatar