Java This Keyword - Java Programming Tutorial

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 99

  • @guru99com
    @guru99com  6 років тому +1

    Check out our FREE Real Time JAVA Project: www.guru99.com/live-java-project.html

  • @johnbateman7415
    @johnbateman7415 6 років тому +22

    I am more of a visual learner. The simple visuals in this helps so much. I also learn better if I know WHY we are doing something. In other words, try to answer the question "what problem are we trying to solve?" This video also explains that. Most educators teach by saying "watch me code" and I find that frustrating. This is a superior source - thank you!

  • @BALLAsTvDotCom
    @BALLAsTvDotCom 8 років тому +38

    these are THE BEST TUTORIALS I have no idea why u can explain so simply and no teachers can, simple to the point with great real world examples... GREAT for refreshers

    • @alexz7111
      @alexz7111 6 років тому +1

      Because the different teachers want to show different ways of explaining things, as claiming their is the best-one and differ from the others. Moreover, as I know to get Academic title and rise up, you should have a certain amount of published works and other things. So many of them just compile old books and rewrite them in their on manner. And that's why there are good and bad books in a particular area of knowledge. For me, this is cheating but they dont care :)

  • @azus9819
    @azus9819 5 років тому +1

    honestly went through a lot of java not knowing what 'this' ment for a few months, thanks for explaining it to me

  • @panospapadopoulos
    @panospapadopoulos 5 років тому

    I have spent almost half an hour searching about this. keyword without understanding it at all. But after watching that video I am confident that I got it! Thank you sir!

  • @bennails3447
    @bennails3447 3 роки тому

    Лучшее описание ключевого слова "this" во всей галактике :) Спасибо!

  • @SmartProgramming
    @SmartProgramming 5 років тому +4

    thank you sir, "this" tutorial is really awsm 😀😀👍👍👍

  • @goswamm
    @goswamm 8 років тому +1

    Great way to explain. I was struggling to understand this concept for very long time. Now clear as water.

  • @davidvilla5154
    @davidvilla5154 7 років тому +16

    why we just can not name differently from class variable name?

  • @liyoueshetu4655
    @liyoueshetu4655 3 роки тому

    a very clear description ,thank you.

  • @uday---
    @uday--- 6 років тому +2

    Wow a real life saver. Thanks

  • @vitalyzubkov4663
    @vitalyzubkov4663 4 місяці тому

    Great video, If anybody has issues with compiling the exact same file that is on the video you should check how public static void main(String[] args){} is written, since the author actually changed that to be correct on some moment of the video, but it's not obvious.

  • @somtovitus
    @somtovitus 4 роки тому

    Best tutorial on this topic!

  • @crispybagpipes1548
    @crispybagpipes1548 6 років тому +1

    Thanks dude you're a lifesaver

  • @yamiben64
    @yamiben64 4 роки тому

    Thanks dude! I finally understand the this Keyword after all these months! ♥

  • @neeraj9860
    @neeraj9860 6 років тому

    Superb explanation in shortest time!!

  • @vactum0
    @vactum0 5 років тому

    wow, very good, easy and helpful explanation, Thanks

  • @markgoldstein
    @markgoldstein 6 років тому +1

    Well done. THIS is a great video.

  • @vuongphamquan9417
    @vuongphamquan9417 5 років тому

    very easy to understand, thanks you very much.

  • @druuu9806
    @druuu9806 9 років тому

    Doooood....that is awesome..i always had confusion about this keyword even after decent research but none was so satisfying as this...realy thanq so much..

  • @DCSTadi1337
    @DCSTadi1337 9 років тому

    You are crushing it dude! Nice video.

  • @sharath9893
    @sharath9893 7 років тому

    thank you! and also provide the user the option to view the video in full screen at your website

  • @justinherrera6790
    @justinherrera6790 6 років тому

    wth. this tutorial only makes me fully understand the this keyword. thanks to you,

  • @debjyotichattopadhyay6679
    @debjyotichattopadhyay6679 5 років тому

    that was a great explanation man

  • @reneestarlight5726
    @reneestarlight5726 5 років тому

    Thnx ..really useful

  • @Syedhussainipage
    @Syedhussainipage 9 років тому

    How did you achieve the handwriting effect in the video. Please share

  • @anilmawji
    @anilmawji 7 років тому +4

    Ahh, first impression is that you should probably be using tabs. Regardless, it is a great tutorial- thanks for making it!

  • @simarjitkaur2864
    @simarjitkaur2864 8 років тому +1

    this was damn confusing for me... this video really helped... thnku for uploading......

  • @theostein
    @theostein 9 років тому

    Superb!

    • @cgme7076
      @cgme7076 8 років тому +1

      Never capatalize tags in html... unless you're creating a new tag.. and even then, don't capatalize the letters in the tag.

  • @avi_9243
    @avi_9243 7 років тому

    You are so good thanks a lot.

  • @palakkharbanda4012
    @palakkharbanda4012 4 роки тому

    Perfect 🔥

  • @GauravKumar-lb6ze
    @GauravKumar-lb6ze 6 років тому

    nyc i got it, really helpful.

  • @ClashwithAshishClashboy
    @ClashwithAshishClashboy 6 років тому

    Nicely explained

  • @tonywong8134
    @tonywong8134 7 років тому +13

    I love how condescending he is @3:25

    • @usmcpound
      @usmcpound 6 років тому +1

      I chuckled at that bit... lol

    • @johnbateman7415
      @johnbateman7415 6 років тому +1

      I didn't find that condescending - I thought it was humourous

    • @teejay89656
      @teejay89656 5 років тому +1

      @@johnbateman7415 It could be both you know. "Suppose you were smart enough..." sounds kind of condesending to most i would assume.

  • @FLYAEROBOY
    @FLYAEROBOY 6 років тому

    ***Correction***: public static void main(String[] args) /
    args can be written as argument too (you can actually write it as anything eg.: abcd, placeholder, putWhateverWordYouWant, declare)

  • @richardparker123
    @richardparker123 9 років тому

    Are you considering your parameter variables (int a, int b) local variables?

  • @charithgowda_9961
    @charithgowda_9961 6 років тому +1

    Cool.. Nyc

  • @nottjonathan
    @nottjonathan 8 років тому +1

    I got like 11 errors when trying to compile the first time.
    As a beginner I had no idea how to correct it, but I just followed the errors saying "Expecting [" so, with trial and error I just removed "args" from the brackets and put it next to it..
    Example: (String [ ] args)
    Complied and Boom! then as the video went on I saw his code had changed to remove "args" from those brackets.
    Still don't understand why or how it works that way, but i'm sure it will make sense soon.

    • @Cbrophy412
      @Cbrophy412 8 років тому +1

      +Jonathan Nott its not important to understand this just yet, just know that this is the way it has to be in the main method.

  • @shaunakhapse9208
    @shaunakhapse9208 7 років тому

    really you an awesome guy

  • @man-xz5or
    @man-xz5or 4 роки тому

    If we have different variables for instance and local like a,b and c,d then even if we have different objects unless the set method is executed simultaneously it should work fine with out this keyword assuming it's not multithreaded I am asking after a long time posting this video if you see please reply

  • @thewolf-ps1qz
    @thewolf-ps1qz 4 роки тому

    but how about showData? do i need to specify the variable a with this.a ? i mean if i type a it will print local variable? just like setData? O.o

  • @harishrawat6097
    @harishrawat6097 7 років тому

    thankyou sir very helpfull

  • @علومالحاسوباونلاين

    you are the best neggga

  • @kylex2152
    @kylex2152 5 років тому

    But shouldn't that already be inherent in making object?
    For example, if you make a class called Person with fields: name and age, each new instance is guaranteed to have their own variables for name and age.
    So if you do
    Person customer1 = new Person
    Person customer2 = new Person
    ...
    then
    customer1.setData("Kyle", 18);
    customer2.setData("Bob", 22);
    then each object has their own fields filled up.
    so if you do
    customer1.showData() it should show Kyle 18
    whereas if you did
    customer2.showData() it should show Bob 22
    That beginning, everything before the period, is the name of the object instance. Right? That indicates what data the showData method should be looking at. So if that's how objects work, I don't understand when and why we would use this.

  • @SuperBhavanishankar
    @SuperBhavanishankar 4 роки тому

    New Subscriber!

  • @nikhilsingh5863
    @nikhilsingh5863 8 років тому

    So this.var indicates it is the variable of the class and not the parameter?

  • @ganxe
    @ganxe 9 років тому

    thank you

  • @GoodrumMC
    @GoodrumMC 5 років тому

    use tabs please

  • @sanket8313
    @sanket8313 6 років тому

    Thank you :)

  • @satoshinakamoto171
    @satoshinakamoto171 6 років тому

    thanks

  • @rajeshkumar...eksuhanasafa5771
    @rajeshkumar...eksuhanasafa5771 9 років тому

    How can I get your all videos on java tutorials???

  • @qR7pK9sJ2t
    @qR7pK9sJ2t 6 років тому +1

    Thanks.. 😁😁

  • @kautukraj
    @kautukraj 7 років тому

    Good.

  • @peshrawazizhassan5345
    @peshrawazizhassan5345 6 років тому

    good

  • @harshhwardhanrai3716
    @harshhwardhanrai3716 5 років тому

    why is there condition a=a , b=b in the method

  • @avibank
    @avibank 8 років тому

    thanks!

  • @sandeepvarma6098
    @sandeepvarma6098 9 років тому

    hello nice tutorials, can you post "android app dev"tutorials..using eclipse..

    • @dilungmoveityafool777
      @dilungmoveityafool777 8 років тому

      +Sandeep Varma
      Why use Eclipse? Why not the Andriod Development Kit?

    • @sandeepvarma6098
      @sandeepvarma6098 8 років тому

      +Di Lung Move it Ya Fool! yea! I'm using Android studio Now..

  • @crisantotubelleja482
    @crisantotubelleja482 9 років тому

    tanx sir

  • @l3aIIin23
    @l3aIIin23 8 років тому

    THANKS!!!!!!!!!!!!!

  • @tanmayarana9906
    @tanmayarana9906 8 років тому

    aswm man.....

  • @GamespielTV36
    @GamespielTV36 3 роки тому

    nicee

  • @NeerajBhasin28
    @NeerajBhasin28 6 років тому

    why this should be the first call in constructor? anyone?

  • @hligfl
    @hligfl 3 роки тому

    And what about using "this" as an argument ??????

  • @charlesbrown179
    @charlesbrown179 9 років тому +1

    Maybe I'm nitpicking, but "public static void main(String[] args)" is changing form several times in the video.

    • @nottjonathan
      @nottjonathan 8 років тому

      +Charles Brown You're not nitpicking. It definitely changes... I got like 11 errors when trying to compile the first time.
      As a beginner I had no idea how to correct it, but I just followed the errors saying "Expecting [" so, with trial and error I just removed args from the brackets and put it next to it..
      Complied and Boom! then as the video went on I saw his code had changed to remove "args" from those brackets.
      Still don't understand why or how it works that way, but i'm sure it will make sense soon.

  • @wilhelm.reeves
    @wilhelm.reeves 5 років тому +1

    this.comment=thanks_a_lot_man;

  • @Ankhar2332
    @Ankhar2332 5 років тому

    ten out of ten

  • @DarkLevis
    @DarkLevis 7 років тому

    . operator looks weird for it as this should be a pointer but hay, it's java

  • @sproutboot
    @sproutboot Рік тому

    3:13

  • @salami99
    @salami99 5 років тому

    a WHOLE 1 hour lecture didn't get this across. Wth college.

  • @abovemediocrity245
    @abovemediocrity245 4 роки тому

    so THIS keyword is for those of us who can’t come up with a suitable variable name

  • @jmaiatrader2925
    @jmaiatrader2925 6 років тому

    I wish all tutorials came like this without an Indian accent. Nothing against Indians from India or accents but whenever you combine these two the English sounds comes out a little too seasoned by the rolled up tongue and highly expressed ( R's) and that causes a tiny unpleasent disruption in the ear drums.

  • @joshknauer4713
    @joshknauer4713 5 років тому

    this syntax makes me want to rail my head through this brick wall

  • @sircompo
    @sircompo 7 років тому

    Very useful, but please stop using 'append' when you mean 'prepend' 8¬]

  • @HerdingDogRescuer
    @HerdingDogRescuer 8 років тому

    OK, this one jumped a light year ahead and I am confused. What happened to Tutorials 11 and 12? You are introducing so many new concepts here that you have totally lost me.

  • @TheRubikmaster1
    @TheRubikmaster1 5 років тому

    I love you

  • @memerhd8888
    @memerhd8888 2 роки тому

    rip windows xp

  • @gauravpande
    @gauravpande 7 років тому

    Great simple video but... HOW WILL YOU PRINT THE OUTPUT?? There is no showData method.
    >>> Output is blank

    • @gauravpande
      @gauravpande 7 років тому +1

      You didn't add showData method and you didn't call it in the main method too.
      This is what you missed.
      class Account2{
      int a;
      int b;
      public void setData(int c ,int d){
      a = c;
      b = d;
      }
      public void showData(){
      System.out.println("Value of A ="+a);
      System.out.println("Value of B ="+b);
      }
      public static void main(String args[]){
      Account2 obj1 = new Account2();
      obj1.setData(2,3);
      obj1.showData();
      Account2 obj2 = new Account2();
      obj2.setData(4,5);
      obj2.showData();
      }
      }
      Output:
      Value of A =2
      Value of B =3
      Value of A =4
      Value of B =5

  • @CarelessMiss
    @CarelessMiss 6 років тому

    use an IDE, damn

  • @ahlemkh6709
    @ahlemkh6709 6 років тому +1

    Thanks

  • @shripadjalamkar3296
    @shripadjalamkar3296 5 років тому

    thank you

  • @noorayan8051
    @noorayan8051 5 років тому

    thanks