- Видео 25
- Просмотров 49 662
Byte Pint
Индия
Добавлен 9 май 2024
Welcome to Byte Pint, your ultimate destination for immersive and enlightening tutorials!.
Whether you're a seasoned developer seeking to expand your skills or a newcomer eager to embark on the coding odyssey, our channel offers a diverse array of educational content tailored to suit all levels of expertise. From beginner-friendly introductions to advanced techniques and industry insights, join our community of passionate learners as we explore the fascinating realms.
Subscribe now and empower yourself with the knowledge to code with confidence!
Whether you're a seasoned developer seeking to expand your skills or a newcomer eager to embark on the coding odyssey, our channel offers a diverse array of educational content tailored to suit all levels of expertise. From beginner-friendly introductions to advanced techniques and industry insights, join our community of passionate learners as we explore the fascinating realms.
Subscribe now and empower yourself with the knowledge to code with confidence!
Crazy edge cases in Java programming
Welcome to another episode of Java quirkiness. In this video I discuss about two more quirky behavior of Java which stumps even a seasoned Java developer.
Please hit the like button, share and subscribe.
[Java,software engineering,programming,computer science,Java projects,Java tutorial,coding,programming secrets,Java programming,software development,programming tricks,Java code tricks,coding tricks,Java development,Java tricks,Java tips,programming tips,Java secrets,Java hacks,python, javascript,equals and hash, ==, Integer, Integer.valueOf, comedy, programming memes, programming humour, Integer.MIN_VALUE, Double.MIN_VALUE]
Please hit the like button, share and subscribe.
[Java,software engineering,programming,computer science,Java projects,Java tutorial,coding,programming secrets,Java programming,software development,programming tricks,Java code tricks,coding tricks,Java development,Java tricks,Java tips,programming tips,Java secrets,Java hacks,python, javascript,equals and hash, ==, Integer, Integer.valueOf, comedy, programming memes, programming humour, Integer.MIN_VALUE, Double.MIN_VALUE]
Просмотров: 235
Видео
BigDecimal might lie 😳
Просмотров 3394 месяца назад
Ready for another mind-blowing weird behavior of Java? Discover why sometimes BigDecimal's equals method results true and sometimes false. BigDecimal is really big enough to handle Thanos level of numbers and floating points, but it has some weakness as well if not used properly. Packed with humor, easy-to-grasp analogies, and practical coding advice, this video is perfect for Java developers, ...
Crazy Method Overloading cases
Просмотров 1 тыс.4 месяца назад
Are you ready to test your Java skills with some tricky method overloading interview questions? In this video, I present a set of challenging Java interview questions that will stump 99% of viewers. Put your knowledge to the test and see if you can answer these questions correctly and if not? don't worry I have given correct answer as well as explanation for each. [Java,Java interview,Programmi...
Why Integer has this weird behaviour? | Java Interview Question
Просмотров 45 тыс.4 месяца назад
In this mind-blowing video, we dive into the fascinating world of Integer and uncover a surprising concept that will leave you in awe. Have you ever wondered why in case of Integer a = 2; Integer b = 2; a b evaluates to true, while Integer a = 200; Integer b = 200; results in false? Join us as we unravel this epic programming mystery and reveal the secrets behind this unexpected(or may be expec...
Git Flow in 100 Seconds
Просмотров 1404 месяца назад
In this quick 100-second tutorial, you will master Git Flow, a popular branching model for Git. Learn how to efficiently manage your project's workflow with feature branches, releases, and hotfixes. Stay tuned to become a Git Flow pro in just a minute and forty seconds! [git flow,git rebase,git stash,git workflow,github,git merge,git tutorial,git pull,programming,git branch,version control,codi...
Exploring Collectors - groupingBy, mapping, and counting Functions
Просмотров 466 месяцев назад
Exploring Collectors - groupingBy, mapping, and counting Functions
Understanding the Importance of Collectors in Java Streams | Implementing Custom Collector
Просмотров 916 месяцев назад
Understanding the Importance of Collectors in Java Streams | Implementing Custom Collector
Java Stream Collectors | toList, toSet, toCollection, joining
Просмотров 426 месяцев назад
Java Stream Collectors | toList, toSet, toCollection, joining
Mastering Java Streams with java.util.stream.Collectors API | Java Tutorial
Просмотров 536 месяцев назад
Mastering Java Streams with java.util.stream.Collectors API | Java Tutorial
I'm not a granpa... I'm not even a father yet... Why you must insult me like that...
What a great channel
I never have seen a language without such quirks, but i think this a serious crap quirk.
Don’t treat Integer objects like the primitive type. Use the primitive type in preference. Check for null if needed and get the primitive value for comparison.
Small Fun Fact: you can access the Integer Cache via Reflection. Just add a static Code block and rewrite the Cache with random numbers and enjoy the Autoboxing chaos unfold
Object types store memory addresses, not values.
Nice content, keep up the good work 🛐🛐
keep them coming.. nice content
Spent most hours in my college days. They never said this😂😂
TECHNOLOGY IS AWESOME🗣🗣🗣🗣💯💯💯💯🔥🔥🔥🔥
Great video
Integer myGirlFriends = -1; xD ...;(
another reason why Java is one of the most retarded languages
Okay, but... _why_ do you need an object version of a primitive data type, anyway?
Avoiding Java at all cost
[edit: dang, youtube interpreted the underscores as indicating italics. Does youtube support escaping characters? Apparently not quite.] Seems to me like Python has the right idea here: use “is” for checking if the lhs and the rhs are the same object, and use “==“ to do lhs.\_\_eq\_\_(rhs) (or rhs.__req__(lhs) if lhs has no __eq__ attribute, maybe. Idk if Python actually has a __req__ thing, as I believe Object has a default implementation of __eq__ , so it would only fail to exist if you removed it?). Or I guess your language could use “===“ in place of “is” if you prefer sigils to keywords. Having == check for identity for type Integer seems inconvenient without a good reason.. (other than possibly legacy code, I guessss…)
Always, always, always... use programming language that doesn't introduce such illogical behavior.
Why doesn't Integer implement __eq__() to override ==? ... oh.
i know why. (without watching.) Autoboxing and Integer.valueOf(n) will return a cached Integer instance for values -1 to 100 (IIRC), so those Integer objects are the same instance. For 900, it's a fresh Integer instance each time. You're using reference equality rather than Integer::equals so it's returning whether it's the same instance, regardless of value.
tldr: Java is broken
Hey this is a great video, make more!
Yes
That's why C++ is still one of the most reliable languages out there. C++ offers full control over a lot of things including cache. I chose C++ because it's the only language I know. 😅 There are surely more than one language offering this much freedom.
This shouldn’t be an interview question, it should be a question for the C-Suite of any company that thinks it’s a good idea to build critical systems using Java.
Ok so, int does not stand for interger... What is int then?
Integer in Java is a Class. Next Vídeo.
Only reason I use java is android studio and majority of help on internet are in java.
My brain is overloading
😀 at 0:36 this is German TV actor Walther Hoffmann performing in popular wedding soap
so it almost acts like a 7 bit integer 💀
== checks for the same address, equals checks the actual object state or value. It’s not that hard idiots. You can even override equals to do whatever your lame javascript franework using ass desires
Java seems cursed. I already didn't like it and refuse to use it because it has no concept of unsigned integers (ICK!) but this is even worse. James Gosling should have been slapped with a trout when he was designing this cancer of a language.
Me when I use C# and don't need to use a wrapper class for primitives because generics support the usage of primitives.
Yet it doesn’t automatically cast floats 😂
@@plaidchuck floats will be implicitly casted to doubles but not vice versa, as such a cast is lossy. Why you would want implicit, destructive casting is beyond me Also neither does Java, frankly I'm not sure what you're talking about here
Having implementation details affect the result is horrible design.
Wow, super cool video.
nice explanation
The same as LUA, you need to know how the VM works to program it. That's stupid.
And people go crazy about JS ;)
Does this occur in C# as well? Cause' they are very similar languages.
Wonderful
Javascript: Perhaps we are related (==,===)
The fffff okay i saw such in python but there is with "is" statement, Java absolutely weird on this, tf i should care, am i not comparing values?? Who tf even made Integer class and why?? Use freaking int, wtf is Integer ahha??
What a retarded design
Because Java isn´t a serious programming language
We often miss details when learning a language; these videos fill that gap. please do upload more videos like these :)
Thank you! Sure 👍
That's interesting but if i got that as an interview question i would leave the interview. A good reason why to use .equals through. But then just have that as a rule in your code pipeline so your team all have the same level of best practises.
Thx
This is the stupid of Java side 😂 and it's inherited on Kotlin too 😂
that's mad silly.
Never touched java before, I've learned from this vid that I'm not gonna touch it ever
Try it with C++ class, not int primitive.
why would you use Integer instead of int in the first place