You've Been Using Java Strings WRONG All This Time!

preview_player
Показать описание
Discover the truth about Java Strings in this eye-opening tutorial! If you've been struggling with Java String manipulation, or feel like you're not using them as efficiently as possible, this video is a game-changer for you.

I reveal the most common mistakes Java developers make when working with Strings, and provide expert tips on how to avoid them, boosting your coding performance.

In this video, you'll learn:

- The hidden pitfalls of Java String handling and how to overcome them
- The secret to mastering Java String concatenation, comparison, and performance optimization
- Best practices for using Java Strings that every programmer should know
- Incredible Java String tips and tricks for faster and more efficient coding

Whether you're a Java beginner or an experienced programmer, these insights will help you level up your Java String skills and make you a more effective developer. Don't miss out on this opportunity to improve your coding game and stay ahead in the competitive world of Java development!

Don't Forget to
===========================================

⭐ Table Of Contents ⭐
===========================================
00:00 - Intro
00:33 - The Right Way to Use Strings
08:04 - Outro

🙊 Here are the goods for all my videos video 🙊

► Recommended Books
===========================================

► Computer and Monitor
===========================================

► Camera Gear
=============================================

► IDE & Tools I use for coding 💻 🎒
===========================================
- ITerm
- VsCode
- GoLand
- IntelliJ Ultimate
- Sublime

P.S
===========================================

❤️ Thanks for watching
Рекомендации по теме
Комментарии
Автор

Dont forget one important note that StringBuilder is not thread-safe, it should not be used in a multithreaded environment without proper synchronization. If you need to use StringBuilder in a multithreaded environment, you should use StringBuffer instead, which is a thread-safe alternative

omer_usta
Автор

We were taught at school not to use strings, but stringbuilders for concat, for this very reason, I just never thought that the difference would be this big, thanks for the video!

Vdkn
Автор

What I most like on your videos is your sense of humor, making learning into a funny thing.
Nice work man!

rpdemo
Автор

You are a great teacher. I have improved a lot as a back end developer. Just from your videos. So many Java developers here in Uganda use your content, its so easy to understand. I got to understand security from your videos

bkaaron
Автор

Great video... Thanks for making this video. Nobody tells these small things that make a big difference in production.

ghostcoderz
Автор

Whether to use StringBuilder/StringBuffer (StringBuffer is thread safe) or just do += or similar depends primarily on many times you're doing it. If it's just one or two times you might as well use += because the performance drops are negligible.

CottidaeSEA
Автор

Awesome learning! I could not imagine the performance impact!

misaelpereira
Автор

How I code for real, and how I code in interviews are different. The interview test is high pressure, and challenging. I like to stick with the old += and then mention "I know there is an optimization for this if we concat a lot of strings in a loop..." and away we go. I feel the same way about Autoboxing. I like to keep things easier to flow with under those conditions and then mention "I can optimize these Autoboxes later..." and it usually gets a grunt that sounds positive.

martins
Автор

Hi Amigo,
That's for the detailed explanation. These are some small mistake which youngsters are making special in production environment which sometimes creates large delaye in applications execution. It was very helpful.

hardikpanchal
Автор

I didn't know these differences, thanks for the tip!

iluvsyphonfilter
Автор

WONDERFUL, my friend. Thanks for this really helpful video and for sharing valuable knowledge with us. Greetings from Argentina💟

cloey_b
Автор

Wa alaykom salam brother Amigo, nice informations as usual

G-k
Автор

Great to see live memory usages for those examples.

ax
Автор

Great video and thumbnails always cracks me up 😂

ahmedal-sharabi
Автор

Thank you, you explain so well! thank you brother

DIFIWIFILUPO
Автор

Thank you so much @AmigisCode, this was eye opening

kchemutai
Автор

This is a great explanation of this common mistake! Awesome

carmenbravo
Автор

Very insightful! I remember seeing that a long time ago while learning Java.
The most probably reason is because Strings are actually a Array of Chars.

Edzward
Автор

I always use StringBuilder but you just said in the beginning that the compiler optimize it to use StringBuilder automatically, or that's different?

awabalbaalbaky
Автор

Bro which video editing tool you are using ?

harshrajpal