Lecture 17 final keyword in Java Hindi

Sdílet
Vložit
  • čas přidán 24. 09. 2015
  • Like, Comments, Share and Subscribe

Komentáře • 136

  • @mhtedits1701
    @mhtedits1701 Před rokem +9

    After 7 year's I came here and I found a treasure ✨ Thanks a lot Sir for this 😌

  • @nargeesansari6337
    @nargeesansari6337 Před 5 lety +14

    thank u so much sir .. i used to hate coding but after watching your videos i feel i can do master in it .. found a knowledgeable teacher after long time ... please don't stop this work .. u r doing a great job ... than k once again

  • @negi7735
    @negi7735 Před 5 lety +13

    A lot of thanks to mysirg for sharing the knowledge you have. Hats off sirg

  • @gautamcodes24
    @gautamcodes24 Před 3 lety +1

    sir me aaj programming me jo v kuch hai sirf or sirf apke wahaj se, Dil se Love u sir

  • @MCA-KNOWLEDGE
    @MCA-KNOWLEDGE Před 2 lety

    Sir you are so perfect and knowledgeable than any high qualified professor of the college and university so once again thank u very much sir

  • @RohanM1212
    @RohanM1212 Před 3 lety

    I learnt every language of my syllabus through your videos . thank you so much sir

  • @abhimanyuaptitudeclasses1952

    great sir.i learned all concept in a easy way.i got what i am searching for......

  • @ashuojha366
    @ashuojha366 Před rokem +1

    Thank you so much sir for sharing such a meaningful content. It helps me a lot.

  • @gachireacts
    @gachireacts Před 8 lety +1

    a great thanks by surabh shukla sir.................................i understand very easily final intance variables

  • @amanagarwal113
    @amanagarwal113 Před 5 lety

    Very nice sir.. Cleared most of the doubts.

  • @sapansandhu1873
    @sapansandhu1873 Před 8 lety +3

    weare students from DAV abohar. we listen your lecture ...... it is very easy to understand..... all the concepts are very briefly defined ...in shot " bai siraaa a"

  • @satyamshivamsundram2172

    Sir your method of teacher is awesome.

  • @javascriptwar9525
    @javascriptwar9525 Před 5 lety +1

    ☺🙏You are the God of Programming's Concepts sir..

  • @gauravtiwari2931
    @gauravtiwari2931 Před 3 lety

    Your voice is similar to neelesh mishra (storyteller)..thanx for teaching java in this simple way

  • @adityapratapsingh4760
    @adityapratapsingh4760 Před 5 lety +1

    Thanku sir your explanation is awesome....sir can you plz tell which java version you're teaching us??

  • @rohananand8253
    @rohananand8253 Před 3 lety

    You are doing a great job of teaching

  • @kumaraniket3300
    @kumaraniket3300 Před 6 lety

    thnku so much sir......god make u always happy

  • @rohananand8253
    @rohananand8253 Před 3 lety

    Thank you sir to teach us in the very simple way

  • @SmartProgramming
    @SmartProgramming Před 6 lety +1

    nice explanation sir, keep it up 👍👍👍

  • @a2zlife2172
    @a2zlife2172 Před 6 lety

    sir you burn lots of my study stress by your lectures.you are real teacher...respect.

  • @sachinmiskin1111
    @sachinmiskin1111 Před 7 lety

    awesome and very simple accurate sir . 👌👌👌👌👌👌👌👌👌👌

  • @rohananand8253
    @rohananand8253 Před 3 lety

    Thanks sir your explanation is very good

  • @rohanjajee253
    @rohanjajee253 Před 4 lety

    Sir please do the videos on python the same u did on Java.....

  • @karankk9040
    @karankk9040 Před 5 lety

    Thank You Very Much Sir.

  • @anilkushwahaji5788
    @anilkushwahaji5788 Před 8 lety +1

    sir this lecture is very useful and clear the concept

  • @amitpadole5856
    @amitpadole5856 Před 3 lety

    You teach in a lucid manner

  • @yogendercool02
    @yogendercool02 Před 6 lety

    Sir if we made a final function in the parent class, and tries to implement their variables in the child class, will it be possible??

  • @kzy747
    @kzy747 Před 4 lety

    u r genius :)

  • @krunalkp1032
    @krunalkp1032 Před 6 lety

    For the world you are one person, but for one person, you are the world!
    And that person is me. Thank you teacher.

  • @thakur_185.
    @thakur_185. Před 6 lety

    Sir i have a question if class is final then we cannot extend it ,why we declare class sa final

  • @krishanudutta2943
    @krishanudutta2943 Před 3 lety

    Awesome sir!!

  • @namratasingh8386
    @namratasingh8386 Před 5 lety

    Thank u so much sir......

  • @siddharthnorajannavar4455

    Thanks alot sir.

  • @masqueradeee
    @masqueradeee Před 4 lety +1

    Thank you sir.

  • @theresilientpianist7114
    @theresilientpianist7114 Před rokem +1

    thank you so much sir 🙏🙏

  • @rajasaha1997
    @rajasaha1997 Před 6 lety

    The variable x is not static but the main function is.It's not possible at all i think

  • @tarndeep7138
    @tarndeep7138 Před 6 lety

    u r great sir

  • @simplesolutionshub
    @simplesolutionshub Před 6 lety +3

    Sir can't we initialise final static member variable using Constructors???

    • @lavishgarg8616
      @lavishgarg8616 Před 5 lety +3

      hey first of all note that the constructor is been called automatically when an object is created ,but static members ie static functions and static variables do not have to deal with objects ,so your ans is no we can't initialise

  • @abhipsahota5225
    @abhipsahota5225 Před 5 lety

    what is the difference between private final static instance variable and a public final instance variable?

  • @amitpadole5856
    @amitpadole5856 Před 3 lety

    Boht useful..

  • @adhishmalviya2408
    @adhishmalviya2408 Před 5 lety

    maja aagya!

  • @dhameliyajaydeep541
    @dhameliyajaydeep541 Před 8 lety

    nic video n my basic knowledge is clear using this video..

  • @GautamBuddhaSiddarth
    @GautamBuddhaSiddarth Před 7 lety

    Best videos for java by the best teacher

  • @Entertainment-sh4ew
    @Entertainment-sh4ew Před 8 lety +1

    Thank you sir, this is very understandable lectures. Sir, i've a humble request to you please make a lecture video on"this keyword and abstract class".

  • @yug_animates
    @yug_animates Před 2 lety

    Thanks alot SirG

  • @ambikadepale8202
    @ambikadepale8202 Před 7 lety

    sir can u plz make a video on radix sort with program??

  • @nishantawasthi8919
    @nishantawasthi8919 Před 6 lety

    thnks sir.

  • @KundanSingh-ui8wg
    @KundanSingh-ui8wg Před 4 lety

    In final class overloading is supported????

  • @sumitsingh3722
    @sumitsingh3722 Před 4 lety +3

    one of the best teacher

  • @iamanandsoni
    @iamanandsoni Před 5 lety +1

    Sir I need java script tutorial for beginner .
    Please share path or make
    Please Sir

  • @vikasmalana9932
    @vikasmalana9932 Před 6 lety

    Tnku sir ...tnku very much......u help me alote to learn weather that was c or java....tnku sir

  • @trilochanpradhan7421
    @trilochanpradhan7421 Před 6 lety

    I have one doubt .. in previous video 16 u said We cant use "Final", "Super", & "this" keyword in Staic. but we are using final key word in static variable.

    • @pranaymall9174
      @pranaymall9174 Před 4 lety

      trilochan pradhan we cannot use this or super in static block , we can use in static variable

  • @nishitpatel5686
    @nishitpatel5686 Před 4 lety

    Thank you sirG

  • @shubhamnaik4205
    @shubhamnaik4205 Před 5 lety

    how the local variable int declared is blanked and not zero.

  • @souptikpanja3735
    @souptikpanja3735 Před 3 lety

    Sir can final methods be overloaded?

  • @premrauth8416
    @premrauth8416 Před 3 lety

    Thank you sir

  • @chiragmittal5893
    @chiragmittal5893 Před 7 lety

    hello sir,
    i want to ask that
    is it true that : declaring a class as final implicitly declares all of its methods as final too

  • @jitumyself4082
    @jitumyself4082 Před 7 lety

    great sir ji

  • @bareetsingh
    @bareetsingh Před 4 lety

    Thanx Sir

  • @souvikkalser907
    @souvikkalser907 Před 2 lety

    great

  • @rahullandge2354
    @rahullandge2354 Před 6 lety

    Sir What is the difference static and final, because they doing same work

    • @shivatejachavali787
      @shivatejachavali787 Před 4 lety

      static mean , it is not instance but coomon to class , and it can be changed / or not
      final means cant be changed

  • @shivGGG
    @shivGGG Před 8 lety

    very simple way :) thankyou

  • @rachitadubey8709
    @rachitadubey8709 Před 6 lety

    we need more examples

  • @daniyalali5534
    @daniyalali5534 Před 4 lety

    Legend

  • @shafqatali3065
    @shafqatali3065 Před 3 lety

    Sir how i buy your mobile app development course .........i tried a lot but failed?????

  • @smritikasadhukhan3086
    @smritikasadhukhan3086 Před 5 lety

    sir can u share the notes of the lectures

  • @gauravbhosle281
    @gauravbhosle281 Před 4 lety

    Then final or static me kya difference hai...static ki bhi value through out program change nahi hoti.

    • @abhisheksah1867
      @abhisheksah1867 Před 4 lety +4

      static ko change kar sakte hai
      class parent{
      int static x = 9;
      public static void main(){
      x =10;
      s.o.p(x);
      }
      }
      o/p
      10
      static ke liye tuje object ni bana na hota hai directly call kar sakta
      however agar tera main() alag class mein hai toh:
      class.x =10;
      karna hota,in this example : parent.x =10;

  • @utkarshadya9189
    @utkarshadya9189 Před 8 lety

    Hi Sir
    Is it possible to initialize static members using constructor ??
    w8ing 4 ur rply

  • @dettolvslifebuoy
    @dettolvslifebuoy Před 3 lety

    What about final static function?

  • @rajdeepghosh1258
    @rajdeepghosh1258 Před 6 lety

    sir, can final instance member be modified later?

  • @pranaysingh4955
    @pranaysingh4955 Před 6 lety

    Sir, in a Java file can we create multiple final classes ?

  • @hnisingh606
    @hnisingh606 Před 4 lety

    Can i do method overloading if i use final keyword to a method???

    • @rishav8595
      @rishav8595 Před 4 lety

      final overloading :
      aap jab overloading karte ho tab app us pehle wale function ko change nahi karte ho balki aap usse doosre argument de kar doosre kaam me lagate ho....final overloading isiliye allowed hai kyunki aap doosre argument de kar pehle wale se ched chad nahi karte ho.....jabki overriding me app ussi pehle function ko use karte ho isiliye overriding me final lagane se pehla wala function apne aap se ched chad nahi karne deta .

  • @AAYUSHKUMAR-or9ke
    @AAYUSHKUMAR-or9ke Před 2 lety

    can the final method be overloaded I am lazy I can't test it?

  • @pradyumngupta2896
    @pradyumngupta2896 Před 5 lety

    Sir can final methods be made inside final class?If yes then why you haven't made that way?

    • @tejendrasada8202
      @tejendrasada8202 Před 4 lety +1

      Yes it is possible to create final method in final class.....
      But anyways it is not possible to explain all type of examples in one vedio

  • @Vaishanaviparabkar
    @Vaishanaviparabkar Před 2 lety

    :-) Tq

  • @utkarshadya9189
    @utkarshadya9189 Před 8 lety

    Hi Sir
    Could tell me why we r passing that argument in main function ??
    What if I don't use such syntax??
    w8 4 ur answer..

  • @softer.prakashmishra8040

    Overloading concept it is supported or not

    • @rishav8595
      @rishav8595 Před 4 lety

      final overloading :
      aap jab overloading karte ho tab app us pehle wale function ko change nahi karte ho balki aap usse doosre argument de kar doosre kaam me lagate ho....final overloading isiliye allowed hai kyunki aap doosre argument de kar pehle wale se ched chad nahi karte ho.....jabki overriding me app ussi pehle function ko use karte ho isiliye overriding me final lagane se pehla wala function apne aap se ched chad nahi karne deta .

  • @Hydrogn-oi7tl
    @Hydrogn-oi7tl Před 5 lety

    sir if methods are declared as final can they be overloaded??

  • @parveenbadhan9263
    @parveenbadhan9263 Před 8 lety +1

    thnk u sir............

  • @DigitalDiary669
    @DigitalDiary669 Před 6 lety

    sir also add algorithm desidn and analysis lectures

  • @Advocate_Parikh
    @Advocate_Parikh Před 7 lety

    Static variable ko initialise karane ke liye constructor use nahi kar sakate?

  • @swapnalipatil9650
    @swapnalipatil9650 Před 6 lety

    Sir, In overriding if we make parent class method as protected and child class method is in another package, then it is possible to call that parent class method by using parent class object in child class.

  • @atuldubey8146
    @atuldubey8146 Před 3 lety

    Which IDE is this??

  • @Top3Trendings
    @Top3Trendings Před 6 lety

    Hi Sir !!!!
    why local variables and final variables are by default blank?

  • @shubhamtiwari5370
    @shubhamtiwari5370 Před 7 lety

    sir,In which type of program we use final keyword??please tell sir..

  • @himanshusingh06
    @himanshusingh06 Před 8 lety +2

    sir how do we initialise final local variable?

    • @javabysaurabhshuklasir3459
      @javabysaurabhshuklasir3459  Před 8 lety +1

      +himanshu singh simply by assigning value during declaration or after declaration, but can not modify once initialized

  • @aviralsharma9260
    @aviralsharma9260 Před 2 lety

    sir slides bhi dedeijiye

  • @prakarshgautam5518
    @prakarshgautam5518 Před 6 lety

    Sir which editor do you use?

  • @girishkdesh
    @girishkdesh Před 4 lety

    प्रिय सौरभ सर, आपने बताया है की, final keyword use करनेसे, मेथड को ओवरराईड नही कर सकते... और मैने यह भी करके देखा की, क्या final function को ओवरलोड किया जा सकता है, तो उसका उत्तर है... हाँ किया जा सकता है...
    तो मेरा प्रश्न यह है की, final method overloading और रेग्युलर method overloading में क्या अंतर रह जाता है? क्या final method overloading किसी विशेष परिस्थिती में अलग प्रकारसे (रेग्युलर से अलग) काम आती है, या उन दोनों में कोई अंतर नहीं है?

    • @rishav8595
      @rishav8595 Před 4 lety

      final overloading :
      aap jab overloading karte ho tab app us pehle wale function ko change nahi karte ho balki aap usse doosre argument de kar doosre kaam me lagate ho....final overloading isiliye allowed hai kyunki aap doosre argument de kar pehle wale se ched chad nahi karte ho.....jabki overriding me app ussi pehle function ko use karte ho isiliye overriding me final lagane se pehla wala function apne aap se ched chad nahi karne deta .

  • @pawankhatri1940
    @pawankhatri1940 Před 7 lety

    hello sir.
    functions declared as final cannot be overridden.. ok
    but can they be overloaded ?
    i think yes but want to conform from you.
    thanks

  • @neelamsamriya8734
    @neelamsamriya8734 Před 6 lety +1

    sir I have a doubt in final class or final method you told that final class is restricted for inheritance so app final methed me usse inherite kiya he and 2nd ye ki jabh final class me method bnaya he to vo to vese bhi not changed hoga to use final class me bnane ka kya fayda

  • @sheikhhamzaamin5251
    @sheikhhamzaamin5251 Před 4 lety

    Saurabh sir please reffer me a book to learn java language easily i am waiting for your reply

    • @sensei249
      @sensei249 Před 4 lety

      go for head first java, if u already learnt java ie if you have grip on basics of all topics (may be after watching lectures) you should be able to complete it in a month.

  • @sushantsingh4156
    @sushantsingh4156 Před 6 lety

    nice job sir !!

  • @AbhishekSingh-cm1pf
    @AbhishekSingh-cm1pf Před 8 lety +1

    sir please explain the output of this code?
    public class Sample
    { public static void main(String[] args)
    {
    Demo d = new Demo(20);
    System.out.println(d.num);
    }
    } class Demo
    {
    final int num;
    public Demo(int n)
    {
    num = n;
    }
    }

    • @utkarshadya9189
      @utkarshadya9189 Před 8 lety

      Is it 20 sir

    • @utkarshsalaria3952
      @utkarshsalaria3952 Před 3 lety

      we can initialize the final variable of the class at the creation time of the object when you do so this will assign a final value for each object for that final instance variable(not final static variable) each time, but once the value is assigned to the object it cannot be changed.
      class Demo
      {
      public final int num;

      public Demo(final int n)
      {
      this.num = n;// this will assign a final value for each object now
      }

      }
      public class Sample
      { public static void main(String[] args)
      {
      Demo d = new Demo(20);
      System.out.println(d.num);

      Demo d1 = new Demo(21);
      System.out.println(d1.num);

      d1.num=22;//Invalid will give error now because you are trying to change the final value for d1 object
      System.out.println(d1.num);
      }
      }

  • @PankajDas-mw4uq
    @PankajDas-mw4uq Před 4 lety

    To final method ko kya overload kar skte hain?

    • @rishav8595
      @rishav8595 Před 4 lety

      final overloading :
      aap jab overloading karte ho tab app us pehle wale function ko change nahi karte ho balki aap usse doosre argument de kar doosre kaam me lagate ho....final overloading isiliye allowed hai kyunki aap doosre argument de kar pehle wale se ched chad nahi karte ho.....jabki overriding me app ussi pehle function ko use karte ho isiliye overriding me final lagane se pehla wala function apne aap se ched chad nahi karne deta .

  • @jambhulesj
    @jambhulesj Před 8 lety

    plz always increase the font size, its not visible if internet speed too slow . Thankyou

  • @kurbanalimasu4895
    @kurbanalimasu4895 Před 4 lety

    Sir can we create final class to child class

  • @shivatejachavali787
    @shivatejachavali787 Před 4 lety

    so , final is like const of c++, no?

  • @shubhamtiwari5370
    @shubhamtiwari5370 Před 7 lety

    sir In which type of program we use final keywordplease tell sir

  • @nishantsirbhai8067
    @nishantsirbhai8067 Před 6 lety

    Sir I cannot understand the concept behind making a private final static variable