+ 1

C#, Java or Kotlin?

Hello guys. I don't have a large base of knowledge on these three languages, people generally say that Java and C# are similar, and Java and Kotlin are similar too. However for you guys who know, study and work with these languages, what do you think about those? Kotlin looks like a cool language to learn.

9th Aug 2024, 4:31 AM
Gabriel Sousa
Gabriel Sousa - avatar
3 Respuestas
+ 2
Java and c# aren't similar Java and Kotlin aren't similar These two statements I made above are converse. However, Kotlin codes can be compiled into java and both Kotlin/java both run on the jvm with the little difference of kotlin being faster in code execution. You can do everything that you can in java, with Kotlin with additional advantage of kotlin being the standard language for Android developement and compose multiplatform. Generally, I'd say if you are interested in app/web development, crossplatform libraries etc then Kotlin is your best choice. C# has more advantage on the game development side. Literally any languages including java/Kotlin can be used to create games but with c#, you get to use game engines like unity. I don't think c# Is an option though, except you want to be isolated in the window's ecosystem.
10th Aug 2024, 10:36 AM
RuntimeTerror
RuntimeTerror - avatar
0
C#: using System; class Program { static void Main() { Console.WriteLine("Hello, World!"); } } ________________________________________ Java: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } } ________________________________________ Kotlin: fun main() = print("Hello, World!")
30th Aug 2024, 1:42 PM
Armen Kodjayan
Armen Kodjayan - avatar