IMPLEMENTING THREAD USING THREAD CLASS AND RUNNABLE INTERFACE - JAVA PROGRAMMING

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 58

  • @Rajat-Sharma1
    @Rajat-Sharma1 5 лет назад +19

    I hereby proclaim that this is the best tutorial for Multithreading on RUclips. No technical jargon, no fancy examples, short and simple, straight to the point.

  • @rameshganapathi476
    @rameshganapathi476 Месяц назад

    your explanation is excellent. very simple approach which makes anyone can easily understand. Thanks your service to learners

  • @srinivasand8900
    @srinivasand8900 4 года назад +5

    Only becoz you... I have learned something sir...... Tq so much sir... Best teacher sir you are.. And you are teaching so many student sir.... Great man sir

  • @TeluguPointvelivela
    @TeluguPointvelivela 3 года назад +7

    I am very proud of you for listening a great lecture ,sir well done ✅ .Thank you for this valuable lecture.

  • @anpsh4125
    @anpsh4125 2 года назад +1

    Now I understand the whole path scenarios about thread class implementation and interface. Thank you so much.

  • @jeevithaswamy5741
    @jeevithaswamy5741 4 года назад +5

    Hello Sir,
    Your lectures are good,easily understandable. These are helping me to learn oops concepts in this Quarantine time. At free of cost I'm learning these. This is the best tutorial on online.Thank you soo much sir!

  • @reactDevelopment
    @reactDevelopment 5 лет назад +2

    amazing sir i understand everything u have teached ,better than all ather u tube videos

    • @sundeepsaradhi
      @sundeepsaradhi  5 лет назад +2

      Hi
      Thank you for your support towards our channel share our channel with your friends and keep following our channel.

  • @kalaimaranmadhavan4182
    @kalaimaranmadhavan4182 2 года назад

    very helpfull sir after seeing your videos got idea in theoritical and when I practice I learned praticle knowledge Keep posting sir.....

  • @ganeshjaggineni4097
    @ganeshjaggineni4097 Год назад

    NICE SUPER EXCELLENT MOTIVATED

  • @manyasadhotra2898
    @manyasadhotra2898 4 года назад +1

    Thanks sir...you are doing a great job..

  • @krishnavenit.5544
    @krishnavenit.5544 3 года назад +1

    Good explanation

  • @shruthireddyb9417
    @shruthireddyb9417 4 года назад +6

    Abstract methods we declare only declaration but not definition .
    In this video in interface concept we use declaration with definition.why?

    • @sundeepsaradhi
      @sundeepsaradhi  4 года назад +6

      hi
      in this program we are implementing the runnable interface and we are writing the definition of run().
      Hope your doubt has been clarified.

  • @raplogics9349
    @raplogics9349 3 года назад

    best video on RUclips

  • @karthikks9976
    @karthikks9976 3 года назад +1

    Can we say that , we are invoking the parameterized constructor of the thread class, by passing the argument ?

  • @Rams_anke9999
    @Rams_anke9999 3 года назад

    Sir we can't see the program bcz of disturbing in voice text in the display plz avoid this problem. U r classes are excellent sir🙏🙏🙏👌

  • @abigailjoshni4109
    @abigailjoshni4109 3 года назад +3

    Sir in the program ,
    single class - derived class
    Thread class - parent class
    ST class- main class
    What about the parent class, you have mentioned nothing about it

  • @javeedhussain2205
    @javeedhussain2205 Год назад

    Sir,what is the use of run and why we should use the run from the thread what is use and why?

  • @jaikrishna9804
    @jaikrishna9804 5 лет назад +2

    Sir.. In interface why you creating two objects in main method

  • @kittyykattt
    @kittyykattt 3 года назад +1

    why are we creating objects for both concrete class as well as thread class while implementing runnable interface?

  • @nimishakumaran1692
    @nimishakumaran1692 5 лет назад +3

    If a class implements a interface we may need to override all methods of interface ? Here you have overridden only run () . How ?

    • @sundeepsaradhi
      @sundeepsaradhi  5 лет назад +4

      Hi
      Runnable interface defines only one abstract method run( ) to implement thread.
      So will override only run( ) method.
      Hope your doubt has been clarified.

    • @nimishakumaran1692
      @nimishakumaran1692 5 лет назад +1

      @@sundeepsaradhi thankyou

  • @MOHANRAJ-wt6hl
    @MOHANRAJ-wt6hl 4 года назад

    Sir first thanks you for your videos, did you upload video setter getter in Java

  • @sairithwik7178
    @sairithwik7178 3 года назад

    Hello sir, Your explanation is awesome. But I have a doubt here, why you are importing util package here. I Hope you are going to reply to my comment sir.
    Thank you sir.

  • @abhiimali
    @abhiimali 4 года назад +1

    Thank you ❤️

  • @prashanth4320
    @prashanth4320 2 года назад

    Sir please make videos on genrics,collections,stream api sir

  • @mdhanamjayan3288
    @mdhanamjayan3288 2 года назад

    Sir in java for interface we can't create an object but we can consider it as an reference.but u r created object for thread interface how?(10.38)...

  • @bunnysunil
    @bunnysunil 5 лет назад +2

    Sir please deals python course also. Pls

  • @avirajsdiary
    @avirajsdiary 5 лет назад +1

    very well explained sir but in the the for loop you have given 0 to 5 right, so it supposed to print 01 2 3 4 so why it is printing 5? then you should give 0 to 6

    • @thansurya
      @thansurya 5 лет назад +1

      In for loop,
      For(int i=0;i

  • @gouthamireddy2806
    @gouthamireddy2806 5 лет назад +1

    Sir why we take runnable only we can't take thread in interface....

  • @sureshreddymoole3988
    @sureshreddymoole3988 4 года назад +1

    only one object is enough to acess in single class and runnable interface. y u assigned t=s?

  • @manasa5226
    @manasa5226 4 года назад +1

    Thanks for upload classes sir but how extend the classs without thread class

  • @Aa-ieoe
    @Aa-ieoe 4 года назад +2

    Why do we need to call the s.start() while we can directly call s.Run()

    • @jyotishmanbhattacharjee64
      @jyotishmanbhattacharjee64 4 года назад +4

      When we call start(), a new thread is created and code inside run() method is executed in the new thread but whereas if we call run() directly, no new thread is created and the code inside run() will execute on current thread.

  • @karthikks9976
    @karthikks9976 3 года назад

    why @runnable i/f, ur passing the object,? how exactlt is at the i/f anf thread class

  • @iswaryadangeti5074
    @iswaryadangeti5074 2 года назад

    Is thread class is already defined before

  • @manasa5226
    @manasa5226 4 года назад +1

    Implimenatation of thread

  • @fausiahleco8547
    @fausiahleco8547 2 года назад

    😍😍

  • @rohitvaliveti9576
    @rohitvaliveti9576 2 года назад

    thannk you

  • @abhirampajjuri9934
    @abhirampajjuri9934 3 года назад

    Sir can u create four threads using runnable interface...

  • @sivasankardiwakar4167
    @sivasankardiwakar4167 5 лет назад +2

    If any method name is start () ?

  • @VISHNUPRIT
    @VISHNUPRIT 3 года назад

    Sir please explain what is Runnable interface

  • @mytubeclips
    @mytubeclips 5 лет назад +1

    When would you use thread class and when would you use runnable interface ?

    • @sundeepsaradhi
      @sundeepsaradhi  5 лет назад

      hi Robert
      we can go with any one during implementation.

    • @mytubeclips
      @mytubeclips 5 лет назад +4

      @@sundeepsaradhi is there a preference? I'm just confused on why youd implement runnable. Also is there some magic that happens behind the scenes? Thread constructor expects Runnable type. Is that it?

    • @sundeepsaradhi
      @sundeepsaradhi  5 лет назад +9

      hi
      yes while using thread class we can extend only one class and if you need to extends more than one class it will not possible so in such cases we can use runnable interface which can be implemented multiple inheritance.
      Hope your doubt has been clarified.

  • @Googly123
    @Googly123 4 года назад

    why we pass a object of class SIngle in Thread class

  • @Rams_anke9999
    @Rams_anke9999 3 года назад

    Good morning sir

  • @dinesharivazhagan8140
    @dinesharivazhagan8140 5 лет назад +1

    interface concept is only method declaration.definition part to another class said in previous section. but you are implement in run() method declaration with definition??

    • @danieltornero5523
      @danieltornero5523 4 года назад +1

      Here Runnable is the interface that contains only abstract methods(declaration). Single implements Runnable and overrides its run method which it's the purpose of using inheritance.

  • @John12345-l
    @John12345-l 10 дней назад

    hi