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
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"
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
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".
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.
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;
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 .
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 .
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.
प्रिय सौरभ सर, आपने बताया है की, final keyword use करनेसे, मेथड को ओवरराईड नही कर सकते... और मैने यह भी करके देखा की, क्या final function को ओवरलोड किया जा सकता है, तो उसका उत्तर है... हाँ किया जा सकता है... तो मेरा प्रश्न यह है की, final method overloading और रेग्युलर method overloading में क्या अंतर रह जाता है? क्या final method overloading किसी विशेष परिस्थिती में अलग प्रकारसे (रेग्युलर से अलग) काम आती है, या उन दोनों में कोई अंतर नहीं है?
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 .
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
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.
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; } }
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); } }
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 .
After 7 year's I came here and I found a treasure ✨ Thanks a lot Sir for this 😌
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
A lot of thanks to mysirg for sharing the knowledge you have. Hats off sirg
sir me aaj programming me jo v kuch hai sirf or sirf apke wahaj se, Dil se Love u sir
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
I learnt every language of my syllabus through your videos . thank you so much sir
great sir.i learned all concept in a easy way.i got what i am searching for......
Thank you so much sir for sharing such a meaningful content. It helps me a lot.
a great thanks by surabh shukla sir.................................i understand very easily final intance variables
Very nice sir.. Cleared most of the doubts.
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"
Sir your method of teacher is awesome.
☺🙏You are the God of Programming's Concepts sir..
Your voice is similar to neelesh mishra (storyteller)..thanx for teaching java in this simple way
Thanku sir your explanation is awesome....sir can you plz tell which java version you're teaching us??
You are doing a great job of teaching
thnku so much sir......god make u always happy
Thank you sir to teach us in the very simple way
nice explanation sir, keep it up 👍👍👍
sir you burn lots of my study stress by your lectures.you are real teacher...respect.
awesome and very simple accurate sir . 👌👌👌👌👌👌👌👌👌👌
Thanks sir your explanation is very good
Sir please do the videos on python the same u did on Java.....
Thank You Very Much Sir.
sir this lecture is very useful and clear the concept
You teach in a lucid manner
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??
u r genius :)
For the world you are one person, but for one person, you are the world!
And that person is me. Thank you teacher.
Sir i have a question if class is final then we cannot extend it ,why we declare class sa final
Awesome sir!!
Thank u so much sir......
Thanks alot sir.
Thank you sir.
thank you so much sir 🙏🙏
The variable x is not static but the main function is.It's not possible at all i think
u r great sir
Sir can't we initialise final static member variable using Constructors???
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
what is the difference between private final static instance variable and a public final instance variable?
Boht useful..
maja aagya!
nic video n my basic knowledge is clear using this video..
Best videos for java by the best teacher
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".
+Entertainment czcams.com/video/DzHGyfZH6fA/video.html video on this keyword
static ki value change kar sakte he bhai..
Thanks alot SirG
sir can u plz make a video on radix sort with program??
thnks sir.
In final class overloading is supported????
one of the best teacher
Teacher ki jagah teachers aayegi
Sir I need java script tutorial for beginner .
Please share path or make
Please Sir
Tnku sir ...tnku very much......u help me alote to learn weather that was c or java....tnku sir
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.
trilochan pradhan we cannot use this or super in static block , we can use in static variable
Thank you sirG
how the local variable int declared is blanked and not zero.
Sir can final methods be overloaded?
Thank you sir
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
klklklkl
great sir ji
Thanx Sir
great
Sir What is the difference static and final, because they doing same work
static mean , it is not instance but coomon to class , and it can be changed / or not
final means cant be changed
very simple way :) thankyou
we need more examples
Legend
Sir how i buy your mobile app development course .........i tried a lot but failed?????
sir can u share the notes of the lectures
Then final or static me kya difference hai...static ki bhi value through out program change nahi hoti.
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;
Hi Sir
Is it possible to initialize static members using constructor ??
w8ing 4 ur rply
What about final static function?
sir, can final instance member be modified later?
no
Sir, in a Java file can we create multiple final classes ?
yes
Can i do method overloading if i use final keyword to a method???
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 .
can the final method be overloaded I am lazy I can't test it?
Sir can final methods be made inside final class?If yes then why you haven't made that way?
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
:-) Tq
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..
Overloading concept it is supported or not
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 .
sir if methods are declared as final can they be overloaded??
No, they can't
It can be overloaded....dont spread wrong info..
thnk u sir............
sir also add algorithm desidn and analysis lectures
Static variable ko initialise karane ke liye constructor use nahi kar sakate?
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.
yes
Which IDE is this??
Hi Sir !!!!
why local variables and final variables are by default blank?
sir,In which type of program we use final keyword??please tell sir..
sir how do we initialise final local variable?
+himanshu singh simply by assigning value during declaration or after declaration, but can not modify once initialized
sir slides bhi dedeijiye
Sir which editor do you use?
प्रिय सौरभ सर, आपने बताया है की, final keyword use करनेसे, मेथड को ओवरराईड नही कर सकते... और मैने यह भी करके देखा की, क्या final function को ओवरलोड किया जा सकता है, तो उसका उत्तर है... हाँ किया जा सकता है...
तो मेरा प्रश्न यह है की, final method overloading और रेग्युलर method overloading में क्या अंतर रह जाता है? क्या final method overloading किसी विशेष परिस्थिती में अलग प्रकारसे (रेग्युलर से अलग) काम आती है, या उन दोनों में कोई अंतर नहीं है?
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 .
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
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
Saurabh sir please reffer me a book to learn java language easily i am waiting for your reply
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.
nice job sir !!
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;
}
}
Is it 20 sir
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);
}
}
To final method ko kya overload kar skte hain?
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 .
plz always increase the font size, its not visible if internet speed too slow . Thankyou
Sir can we create final class to child class
yes
so , final is like const of c++, no?
yes but it's run one time
sir In which type of program we use final keywordplease tell sir
Sir I cannot understand the concept behind making a private final static variable