• We are an English-only forum. Selling threads should have samples, or permanent ban.

Anybody uses java?

Leopard

First Lieutenant
RaidForum.co
Joined
Apr 12, 2024
Messages
16
Reaction score
7
Credits
0
My question is, does anybody use java? Like, you can already code in Kotlin and it still uses JVM. Kotlin has lot of simpler syntax than Java.

For comparison, here is Java and Kotlin “hello world”.

Kotlin:
Code:
fun main(args : Array<String>) {
    println("Hello, World!")
}

Java:

Java:
class HelloWorldKt {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}

It feels like Kotlin might overtake Java. I code in Java, and I wint switch to other coding language just because “its new” or “better”.
Your oppinion fellas?
 
I am gonna drop Java beginner tutorial this week, stay tuned!
 
If you are working on some already existing java based project or doing the enterprise work: Java is still going to be your day job. There is a wealth of Java code that will need to be maintained for many years, and its tooling libraries and frameworks have been tried out already.

If creating a new android project: Google has made its intention even more clear – if your starting a new project, is almost never wrong to go the Kotlin route. Because Kotlin has better support for modern features (such as coroutines for asynchronous programming), Kotlin is faster to write than Java and less error-prone.

If you value simplicity + modern features: Win for Kotlin. It has a syntax that is less verbose, it has modern things available out of the box which are not in Java; such as null safety, extension functions, coroutines for async programming.

If you are a Java dev and happy with that: Do not hurry up to migrate in Kotlin, if your job is going well in Java. Still, Kotlin may be worth your time investment. Java Devs can learn it pretty easily, and this will bring more opportunities (especially in Android dev or Kotlin based backend frameworks like Ktor).
 
Back
Top Bottom