Brother hats off to you. I have learned Constructor from various sources but was never able to understand why actually we use Constructor & you made it so simple & precise. Thank you so much. This Diwali I wish you long long life!! God Bless you!!
Thanks Naveen for sharing knowledge I have some query 1 :- Is this compulsory to declare global variable in class and then initialise it with local variable as it given at 22:00
Hi Naveen, again an excellent video. I am a regular follower of your videos and the way you explain the concepts are amazing, I don't have any IT background but I have started writing codes only by following your videos. Thanks a lot sir for sharing your knowledge.Can you please share how I can access codes through your git repository.
Naveen, i have a doubt, when we want to declare the global variables, we can do while we are creating them, why we need to pass through the constructor and use this keyword to declare it ?
what is the best way to practice the java concepts and the collections ? Is there any coding site just from the testing point of view, not a developer point of view.
Hi Naveen, I tried to override local and class variable by creating object inside constructor only. Output is giving very weird response. Please suggest whats wrong. can't we create object inside constructor? public class This { //class variable String name; int age; //parameterized constructor public This(String name, int age) { this.name = name; this.age = age; System.out.println("local variable name: "+name); System.out.println("local variable age: "+age); This obj = new This("mom", 30); // can't we create object inside constructor. System.out.println("class variable name: "+obj.name); //check this why error is giving. System.out.println("class variable age: "+obj.age); } public static void main(String[] args) { This obj = new This("tom", 25); System.out.println("class variable name: "+obj.name); System.out.println("class variable age: "+obj.age); } }
this is not super keyword ...it is super calling statement right? super keyword is used when we want the parent class non-static method implementation to be the o/p along with the child class method implemntation.
Such a crystal clear explanation--my concepts are well clear now.Can't thank you enough for this.Keep up the great work.
Thanks Ankita
Sir even a non programmer can understand Java from you. Perfect explaination for keywords
30:35 , Some lady - I cant hear you
Naveen: Bcoz i dint say anything
and again mute that was lit LOL LOL
Learn from 1 video every day to be an expert in Java. Loved all your videos thoroughly, Naveen. Thank you!
Finally some great way to share a concrete KT to the world. Thanks Naveen , lots of best wishes
Thank you so much Naveen for outstanding & clarity explanation with examples
perfect video sir Thank you
Brother hats off to you. I have learned Constructor from various sources but was never able to understand why actually we use Constructor & you made it so simple & precise. Thank you so much. This Diwali I wish you long long life!! God Bless you!!
Sir your videos are something which is par excellence. Big thanks
I don't know whether i would get a job in automation testing but your way of teaching is making me get addicted to Java.
in which company u got placed Sushma
@@WhiteKnight_OG Accenture
nice one, very helpful tutorial, god bless you 👍👍👍🙂🙂🙂🙂
Too much crystal concept Naveen , this is Vipin from tcs
hi naveen, i regularly following your core java class.thanks for your videos.
hi naveen, plz send me a link of selenium class from starting class and continuation...
Naveen, thanks for your hard work and dedication .....Good wishes .. keep up good work !!
Thanks bro. Now i am very clear about constructor. Keep it up
Very nice sessions, the way you explain the concepts are really marvelous.
Gud Explanation..the way you are comparing java concepts with real time scenarios in project...
Thank You Naveen
This guy should run his own University
Helpful thala
Awesome tutorial
Thanks Naveen.
Thanks Naveen, Please add remaining videos on Selenium Grid and Rest Api
Hi Naveen!
Thanks for your sessions.
Do we have video on Exception Handling too?
Thanks Naveen for sharing knowledge I have some query 1 :- Is this compulsory to declare global variable in class and then initialise it with local variable as it given at 22:00
Hi Naveen, again an excellent video. I am a regular follower of your videos and the way you explain the concepts are amazing, I don't have any IT background but I have started writing codes only by following your videos. Thanks a lot sir for sharing your knowledge.Can you please share how I can access codes through your git repository.
ua-cam.com/video/UF8prUYlA98/v-deo.html
Naveen, i have a doubt, when we want to declare the global variables, we can do while we are creating them, why we need to pass through the constructor and use this keyword to declare it ?
Nice tutorial and easy to understand as I m a beginner. How to create my own GIT repo…
Plz help me
Nice video
Student: Naveen we can't hear you!
Naveen's savage reply: Because I didn't say anything😂😂
Hi Naveen, please make a video on upcasting and downcasting
what is the best way to practice the java concepts and the collections ? Is there any coding site just from the testing point of view, not a developer point of view.
Hi Naveen can we create multiple parameters constructor. 🤔 Please respond
Can we extend more than one constructors??
Hello Naveen....can you give me a real time example like why to use this keyword as we already use local variables
In 2021 watching basics of java
if constructor is not there then we can initialize the global variables using this keyword within the non-static method also.
Hi Naveen, I tried to override local and class variable by creating object inside constructor only. Output is giving very weird response. Please suggest whats wrong. can't we create object inside constructor?
public class This {
//class variable
String name;
int age;
//parameterized constructor
public This(String name, int age) {
this.name = name;
this.age = age;
System.out.println("local variable name: "+name);
System.out.println("local variable age: "+age);
This obj = new This("mom", 30); // can't we create object inside constructor.
System.out.println("class variable name: "+obj.name); //check this why error is giving.
System.out.println("class variable age: "+obj.age);
}
public static void main(String[] args) {
This obj = new This("tom", 25);
System.out.println("class variable name: "+obj.name);
System.out.println("class variable age: "+obj.age);
}
}
We should create object in main method not inside a constructor
this is not super keyword ...it is super calling statement right?
super keyword is used when we want the parent class non-static method implementation to be the o/p along with the child class method implemntation.
At 30.51, we can't hear you.
Naveen: because I didn't say anything.
Thank you Naveen