Java vs Kotlin for Android Development in 2022

preview_player
Показать описание

A common question that I see people ask whether they should learn Java or Kotlin for Android app development. This is an excellent question, after all who doesn't like a good "Kotlin vs Java" quandary? In this video I go ahead and answer that question by talking about the shortcomings of Java as well as the amazing features of Kotlin. We will also see side by side code samples of various features as well.

🚶‍♂️ FOLLOW ME 🚶‍♂️

📝 DESCRIPTION 📝
So whether you are looking to start a career in mobile development, understand the major difference between two Android Development languages, or just be entertained while we compare and contrast how these two languages approach solving the same problems, you are in for a treat. Keep in mind that Kotlin was designed to replace Java, and while there can be a lot of confusion between Java vs Kotlin, this video will tell you which one is better. Honestly I will be surprised if Java is still a big programming language after Google I/O 2021 as I expect Jetpack Compose to go 1.0 at which point Kotlin will take over the software engineering world.

📚 RESOURCES 📚

⏰ TIMESTAMPS ⏰
0:00 - Intro
1:01 - Java Is Outdated
2:09 - Kotlin Is Platform Agnostic
4:38 - The Future of Android is Kotlin
7:28 - Kotlin Language Features

*The above links are affiliate links.

#mobiledevelopment #softwareengineer #softwaredeveloper
Рекомендации по теме
Комментарии
Автор

Hey everyone, what language are you using for Android in 2021? Let me know, would love to know how many folks are still using Java full time with no plans of using Kotlin 😊

CodyEngelCodes
Автор

I wonder why this video invested a lot in images and content but few views, I really appreciate your great work.

kind-developers
Автор

As someone getting back into learning mobile dev, this video was super helpful. Thank you! Subscribed! ✨

JacobPernell
Автор

12:36 If I m not mistaken you can do a ternary operator in java which looks like this:

int max = (a > b) ? a : b;

13:33 You can typecast in if statement:

if (object instanceof String str) {
str.length();
}

captsiro
Автор

2024 still using java with full satisfaction 😎

androidboss
Автор

The use of colon for inheritance and use of the top level main function as the entry point sounds familiar... yeah.. C++ and Dart uses them. C# uses the colon too, although it won't extract the Main function outside a class which was adoption from Java.

lexsoft
Автор

I think, I cannot ignore Java at all. The reason is there are a lot of jobs requiring skill in Java for backend; sometimes they even mention Java EE.
That's why I am learning both.

lexsoft
Автор

Kotlink coroutimes use a single thread, but Java (in Loom) uses "commonPool" which has as many threads as the CPU. Kotlin's fundamental limitation is that it works at the bytecode level, whereas Loom works at the JVM implementation level. This is why Kotlin was forced to use the "colored function" approach, whereas in Loom, they are all on the same footing. Loom is far more ambitious because it redefines the notion of the Java thread, making a positive impact on all the existing code that uses the blocking APIs. It basically reverts the definition of "modern Java", placing the oldest I/O APIs ahead of the async APIs of today.

KangoV
Автор

Hi Cody, I hope you read this and could help me answer an opinion by giving me your feelings or sharing your wisdom. I've been learn JavaScript for close to 10 months and recently I picked up Kotlin for mobile and found I enjoy it. But I am afraid that if I go and focus on Android development I won't find a job, I'm moving to Orlando Florida and I think there is a small job market there not sure. Also I am afraid that everything I learn with JavaScript I will loose including my skills in CSS which I got good at for designing. Is learning Android development starting completely over if I stop learning web development? How long does it normally take to become an Android developer? Thanks for reading my message..

DevlogBill
Автор

Is Ktor good for large-scale project development?

storypur
Автор

where are checked exceptions in kotlin? and 2nd why is there so trashy amount of time to compile a small app? I am trying to learn kotlin and I am struggling so hard it does not even support automatic type widenin + everything is "pythonized" which is just gross so poor to read it almost does not feel like a language I have over 8 years of experience in Java as an Android Dev and now we are forced to switch in kotlin in our company

iliasreventon
Автор

I started using Kotlin when it went to 1.0 in Jan 2016. It was super easy to get working with Android studio and has great Java interop. The only reason to use Java is if you're shipping a library that is being used by Java. Some of the more advanced features like coroutines, extensions, etc are awkward to use from Java.

robchr
Автор

Swear to god. I thought levy from gotham chess is doing a programming video.

gellertgrindelwald
Автор

After this video, I am now convinced Kotlin is the way forward. This is the next language in going to learn as I am a Android fan boy 👍🏾

videomaster
Автор

Sir does phd in computer science boost salary increase? Nice video.

pikusarker
Автор

Some of the criticisms to Java have been addressed since this video was released. But I don't know if they're usable for Android.
Kotlin is definitely the best language for Android development though.

karantica
Автор

I used both, people say Kotlin is better than java blah blah, but It is not only me still have fun with java, hey google itself still have fun with java, it's dependencies are still java code. It said Kotlin is null safe, but there are ways to make null safety in java. I think Kotlin is good enough, but it is not better than JAVA. What does Java Logo seem to you? yes, it is a cup of coffee. Coffee mean smooth liquid never fails to give joy or satisfaction whenever it is being drank. It may be bitter, but it has purpose. Be nice to JAVA. ;D

sawaungaung
Автор

Bro..you provide great informative videos. Glad to be one of your early subscribers 😀. I am learning Kotlin for mobile dev. Can i get your advice sometimes through social media or something?

kazim
Автор

I am confused…is what you talked about in this video is about Kotlin native or Kotlin/jvm

جنوبيجيمري
Автор

Since Google recommended Kotlin, I followed it.
Now, how about the backend ?

lexsoft
welcome to shbcf.ru