Java String + Number = Confusing? Watch This !
Автор: TAP ACADEMY
Загружено: 5 мая 2025 г.
Просмотров: 2 759 просмотров
In this short, you’ll understand how Java treats numbers and strings when combined using the + operator.
Watch how this simple-looking line gives a mind-twisting output:
System.out.println(10 + 20 + "Java" + 10 + 20);
📌 Concepts Covered:
• String concatenation vs. arithmetic
• Left-to-right evaluation in Java
• How Java converts numbers to strings
• Why the output becomes 30Java1020
Whether you’re a beginner or brushing up your fundamentals — this is a must-know logic!
👉 Don’t forget to Like, Comment, and Subscribe for more Java shorts, logic puzzles, and real-world coding explanations.
#JavaShorts #LearnJava #JavaOutput #StringConcatenation #JavaBeginners #Day1Java #CodingShorts #ProgrammingLogic #IndianStudents #TechEducation

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: