I've been a Java Developer for about 5 years now. I wish I had someone like you explaining basic things like this. +1
@MarcusBiel8 жыл бұрын
Thanks.I even think you should still be able to learn something from my videos, especially in my earlier videos I give a lot of clean code advice at the side.
@AvikNayak_2 жыл бұрын
I have seen a lot of other educators who teach really well but no one could teach this topic as well as you. It was simply too good!
@TheAksont4 жыл бұрын
Thank you for this! Maybe the only video on this subject here on KZbin that is actually helpful for beginners!
@manikanta-sr3zc5 жыл бұрын
Sir very thanks you have explained to us in the best manner and in animation even non developer can also understand very easily
@j_thom6 жыл бұрын
Teaching style is simply amazing! Where's your Nobel Peace prize?
@MarcusBiel6 жыл бұрын
LOL. Are you making fun of me? :)
@prakashbawge36884 жыл бұрын
Too good sir ,I have never seen like this type of teaching skills,will give suggestion to my son also to follow u
@RedEyedJedi7 жыл бұрын
"Duplicate code is evil" hahaha. I love that bit. So happy I found your channel, it's really helping me a lot.
@MarcusBiel5 жыл бұрын
You're welcome :)
@JMTorresDupri7 жыл бұрын
Marcus. I really appreciate this explanation. Was perfect for me. The best for you.
@MarcusBiel7 жыл бұрын
Thanks! Your welcome! :)
@Genesyxx5 жыл бұрын
a very clear and concise tutorial. great job!
@alexsora6243 жыл бұрын
you're a god helped me out with my university assignment
@rachanabennur94573 жыл бұрын
That was such a clean and clear explanation! thank you so much!
@MR2SpyerJournal7 жыл бұрын
You know, using illustrations like you do is great! Very helpful. I wish Java Docs were as useful as your video. haha
@sfundoy5dube592 жыл бұрын
Well explained, much appreciated sir🙏✨
@tarajano19807 жыл бұрын
"Initially you dont create clean code" ... oh boy ! that was a big relieve for me and my sanity :-D
@MarcusBiel7 жыл бұрын
:) Your welcome. I thought this is important to mention. The majority of developers "call it a day" and go home once their code compiles. But this is only when the REAL work actually STARTS - making your code clean is step two AFTER the code does what it is supposed to do. Work in little baby steps. Making it WORKS SOMEHOW is already a big, FIRST stept. It's like writing a book - you don't write a bestseller in a day ...
@JerreMuesli3 жыл бұрын
Red, Green, Refactor!
@habibbenmammar22038 жыл бұрын
thanks marcus, it was clear and clean
@MarcusBiel8 жыл бұрын
+Goldorak DZ perfect :)
@alphanelmas16624 жыл бұрын
Clear explanation thanks sir
@nikeshsingh2081 Жыл бұрын
Nice explanation 🙏
@moha_kunX11 ай бұрын
bro really made java funny lol
@NourAli-hl4ih5 жыл бұрын
Amazing I am taking data structure in less than a month so this was great kick start
@MarcusBiel5 жыл бұрын
You're welcome! Consider watching my other videos, like I have two about the data structure List...
@Djaoverpower3 жыл бұрын
wouldn't it work even if we don't wright "comparable " in the Apple class creation ??
@longkesh1971 Жыл бұрын
Thank you for making this video.
@saadmanahmed8605 жыл бұрын
good illustration..
@MarcusBiel5 жыл бұрын
Thanks :)
@jlestua8 жыл бұрын
thanks Marcus for the explanation!
@MarcusBiel8 жыл бұрын
Your welcome! Let me know if I can help you with anything.
@joaquimsousa22672 жыл бұрын
Perfect *****
@mackensonreginaldmichel3993 жыл бұрын
Thanks for the viodeo. I have a problem. sometimes I see that people put .... implements . Why they do that? why you do something different?
@dilipjain95818 жыл бұрын
you are explain too good.
@MarcusBiel8 жыл бұрын
+Dilip Jain Thanks Dilip! :)
@nileshsuryavanshi87925 жыл бұрын
for the starting two condition we are using "this" but for the last one we using "Integer" why?
@mariyakulidzhanova70825 жыл бұрын
The compare() method of Integer class of java.lang package compares two integer values (x, y) given as a parameter and returns the value zero if (x==y), if (x < y) then it returns a value less than zero and if (x > y) then it returns a value greater than zero.
@eagle57596 жыл бұрын
Dude your awesome
@MarcusBiel6 жыл бұрын
Thanks :) try out my free tutorials (including a pdf) on my website, also :)
@xskieojokoja37037 жыл бұрын
4:06 "Objects of type Apple can be compared to other Apple objects" - does this mean that I can compare a class name Apple with other class named Guava if I write "class Apple implements Comparable" ?
@MarcusBiel7 жыл бұрын
Is that a rhetorical question? If not, just try it out by yourself, this will help you way more then me telling you.
@maurilioblanken96844 жыл бұрын
Firework Hoorary Party!!!!
@chanpheakdeychum15166 жыл бұрын
Can you explain what this.weight means? at 5:40s when overriding compareTo.
@MarcusBiel6 жыл бұрын
Sure. "this." refers to the current instance. it is necessary if you have a local variable as well as global instance variable, and you want to differentiate between the two this.myVariable will reference to the global variable of the current instance, and "myVariable" in this case would refer to the local variable. In the given case, "this" is only used to make the code nicer readable - I used "other" to refer to the other apple instance, and "this" to refer to the current instance - this way we can easily compare the two :)
@richardmccormack24865 жыл бұрын
excellent & succinct :)
@jaysechase4 жыл бұрын
Great vid :)
@harishchowdarysure88588 жыл бұрын
I have a one class who contain 5 methods But my requirement is in between 5 methods I want to apply locking mechanism that multiple thread can’t access at a time but rest 3 methods can be access by multiple thread at a time NOTE:Without using Synchronized key word
@harishchowdarysure88588 жыл бұрын
comparable in java.lang package not in java.util package
@MarcusBiel8 жыл бұрын
True! I Thanks! just checked the video, the only thing that seems to be wrong is the first slide however, content seems fine. Let me know if you find anything else!
@yandiravivancos11626 жыл бұрын
Hola!!! gracias Marcus
@MarcusBiel6 жыл бұрын
You're welcome! :)
@stevie_efbabyy8 жыл бұрын
@5:38, it seems as if either one of the if statements were true, it would return that number and still return 1. How is that correct?
@MarcusBiel8 жыл бұрын
? If one of the statements is true, it will return -1 (in the first case) or 0 in the other and leave the function. 1 will be returned if none of the if cases apply. Why don't you try this out by yourself, with some small example, to get a deeper understanding?
@stevie_efbabyy8 жыл бұрын
Oh i get it cause theres a return value in each if statement, it would automatically return that value within the if statement and not go on, awesome!
@MarcusBiel8 жыл бұрын
Your welcome :)
@harishchowdarysure88588 жыл бұрын
Sir how mutch memory the jvm will take in out computer by default
@MarcusBiel8 жыл бұрын
+harish chowdary that depends on the JVM you use, and the settings you use. Read this: stackoverflow.com/questions/2915276/what-is-the-default-maximum-heap-size-for-suns-jvm-from-java-se-6
@harishchowdarysure88588 жыл бұрын
Windows64 bit
@harishchowdarysure88588 жыл бұрын
I am not asking for heap i asking entire jvm
@MarcusBiel8 жыл бұрын
That is actually even easier. Your windows task manager shows the memory used by the entire jvm. www-01.ibm.com/support/docview.wss?uid=swg21138203&aid=1
@harishchowdarysure88588 жыл бұрын
constructor and finalize methods are called as life cycle methods of javase?
@rajtilak0296 жыл бұрын
amazing...
@harishchowdarysure88588 жыл бұрын
sir what is transaction? please reply me
@MarcusBiel8 жыл бұрын
There are several types of transactions - you probably refer to database transactions. You can define a set of operations as one "transaction" - now if any of the operations within that "transaction set" fails, then the state will be "rolled back" to exactly how it was BEFORE that "transaction" was executed.
@harishchowdarysure88588 жыл бұрын
In our computer
@pejko892 жыл бұрын
Mmmmm I want to eat the red one.....
@MrTechGeek018 жыл бұрын
(y)
@MarcusBiel8 жыл бұрын
+MrTechGeek01 ?
@MrTechGeek018 жыл бұрын
sorry if you don't understand this is shortcut for (like) emoji on Facebook..in short i liked the video nice explanation.thanks
@MarcusBiel8 жыл бұрын
+MrTechGeek01 no, I didn't know. Now you taught me something, too. ☺. If you have any questions just let me know.