Thank u Monica I am glad it helped you. I really appreciate that you are spending your weekend time on learning and it will always pay off in long run.
@@Mukeshotwani So nice of you. Actully need your help as I am laid off followed by Covid downsizing and just want to persue something in technical field only now. Glad to see your profile somewhere as we too have been in Bhopal and relocated to indore last year.
Such an awesome crisp and crystal clear explanation sir!!! Hats off!!! To be frank, i have seen multiple tutorials, but none explain with such clarity. You know how to make people understand. Keep rocking :)
Thank you so much for clearing the concept. I have a doubt about how can we pass an array as a parameter in java and also return it. Can you please help in this?
Hi Dipankar, try below sample code. Return type is Object[] and accept parameter is String [] public Object[] getName(String []arg) { Object[] arr=new Object[5]; return arr; }
hi sir your teaching excellent but one small suggestion please can uwrite methods before main method and call object after main method this will make people easy to understand and also code looks good.thx
I'm very new this environment, I'm taking selenium course without prior programming knowledge, in Nyc .your video helping us a lot , if you any suggestions will appreciate.thx again
Hi Mukesh, Can you pls explain what is the importance of static methods in Java. Also why don’t we create all the methods as static, so that there is no need of creating objects to call the variables and methods of a Class?
Hi Esha, Let me explain with an example because it is very interesting and important. Let's assume you have static variable WebDriver driver and you want to run test in parallel then it wont execute and it will run test one by one. If you do not make variable as static then you can run test in parallel because each time new instance will be created. Now lets talk about method- Static methods can access only static variable and non static method can access both the variables. I hope it is clear now. If you still have doubt then let me know, I can record video on this.
Hi Mukesh first of all a big thank you for creating such a wonderful video... I just want to know can we use global variables instead of declaring a return type and which is a better approach out of the two ?
Hi Chiranjibi, using global variables is not a good approach as it is against data hiding concepts of OOPs. so using return types is a better approach.
Hi Mukesh, you are awesome, Thank you very much. public class ThankYouMukesh{ public static void main(string [ ] args) { system.out.println("Thank" "You" "Mukesh" ) } }
Hai Mukesh ,Still some confusion over calling Non static Methods and static methods ,,If we declare variable as static in Non static methods can dos variables can be access all over the class ?
Hi Mukesh I am from development background and new to Selenium how can I get Job in Selenium What are the things I have to cover? I have learned java from your channel is it enough? What are the topics I have to cover to clear interview I really appreciate your suggestions You are doing good Job keep doing
Hi Rahul, I understand that my reply to you must be very late by now, but still i want to share my view on this question as I had the similar queries/doubts some time ago. Let me answer each of your questions one by one : 1. What are the things I have to cover?
2. What are the topics I have to cover to clear interview ? Do you mean in Java or in Selenium ? 3. I have learned java from your channel is it enough? Yes, Mukesh's videos should be enough for selenium learning , selenium does not require you to be a Java Master, if you have the basic understanding you can learn. I hope this helps.
Hi mukesh this may be a silly doubt...but how can we use methods of other class in some other class without using EXTENDS keyword,as you did in dynamic calculator method......... thanks in advance
public class Paramdemo { public static void main(String[] args) { Paramdemo obj1=new Paramdemo(); obj1.sub(); obj2.sum(); } } } public class Paramdemo2 { public int sum (int a, int b) { int c = a + b; return c; } public double sum(double d, double f) { double a = d + f; System.out.println("Print " + z); return a; } public int sub(int c, int d) { int z = c + d; return z; } }
This is the correct code : public class methodDemo { public static void main(String[] args) { methodDemo obj1=new methodDemo(); int x = obj1.sub(15, 10); System.out.println("Subtraction "+x); int y = obj1.sum(100, 15); System.out.println("Addition "+y); } public int sum (int a, int b) { int c = a + b; return c; } public double sum(double d, double e) { double f = d + e; return f; } public int sub(int g, int h) { int i = g - h; return i; } }
@@Mukeshotwani Hi Mukesh, I wants to access of your framework and interview questions .let me know how i can do this . Thanks Durjan (durjansingh10@gmail.com)
Hi Mukesh, Thank you bro for ur wonderful videos. I am new to java ur videos are helping me a lot. A quick question, Why do u get a large number when u do subtraction using double. Eg: 7488.2345896 Any theory or logic behind this. Regards, Srikanth
Thanks alot Mukesh. It cleared almost all my doubts.Now I can practice POM videos also created of you.
Thank u Monica I am glad it helped you. I really appreciate that you are spending your weekend time on learning and it will always pay off in long run.
@@Mukeshotwani thanks.Seriously want to learn it and passionately referring all the content shared by you.
@@monicagoyal8225 I will try my best to assist you. Best of luck Monica 👍
@@Mukeshotwani So nice of you. Actully need your help as I am laid off followed by Covid downsizing and just want to persue something in technical field only now.
Glad to see your profile somewhere as we too have been in Bhopal and relocated to indore last year.
Let’s connect mukeshotwani@learn-automation.com
थैंक यू मुकेश। काफ़ी अच्छा और महत्वपूर्ण सेशन था ये।
Thank you so much Mishra ji...
Thanks...again :) for sharing these minute informations as well which make us stuck in coding for hours
Thank You So Much Mukesh for creating such awesome videos! Appreciate your hardwork behind this
Thank you Mukesh.. your explanation is very good..i follows your selenium videos..good job.
Such an awesome crisp and crystal clear explanation sir!!! Hats off!!! To be frank, i have seen multiple tutorials, but none explain with such clarity. You know how to make people understand. Keep rocking :)
Thanks a ton Krirhivasan Krithivasan :) Keep learning and let me know if any help from my side.
Just sharing your knowledge is the biggest help :) keep rocking!!!
Wonderful explanation 👌👌👌thank you sir
You're most welcome Mangesh
How to get dynamic input? or read from file and perform operations. you are so good, to the point teacher
Mukesh Buddy... You have good skill that how to make things easy for others !!!!
really great videos of you mukesh..great way of explanation..including your all selenium classes excellent.
Thanks Manjula
Awesome explanation. I love your teaching style....thumbs up.
Thanks kabir Keep learning.
Hi Mukesh , can you please also add how pass value to the parameters runtime (from users). Thanks helpful content and examples
Thank you so much for clearing the concept. I have a doubt about how can we pass an array as a parameter in java and also return it. Can you please help in this?
Hi Dipankar, try below sample code.
Return type is Object[] and accept parameter is String []
public Object[] getName(String []arg)
{
Object[] arr=new Object[5];
return arr;
}
Its really very helpful Mukesh..Thanks a lot for clearing doubts :)
Thanks Awanish
I am glad you liked my videos. Keep visiting and let me know if any help required from my side.
Mukesh Great going ...all the videos are really awesome..thank you so much :)
I am glad it is helping you. You can also join our fb group for any query.
facebook.com/groups/256655817858291/
mukesh how to make preparation for selenium? i like ur videos .i like ur way of teaching .can u suggest me ?
hi sir your teaching excellent but one small suggestion please can uwrite methods before main method and call object after main method this will make people easy to understand and also code looks good.thx
Thanks 😊
Thank you very much for your detailed explanation
Great way of explanation
Hi Mukesh,
Please explain me when can we use static and non-static methods in selenium webdriver?
Regards,
Prashant
your are pretty awesome virtual instructor .
Thank you Rupon
I'm very new this environment, I'm taking selenium course without prior programming knowledge, in Nyc .your video helping us a lot , if you any suggestions will appreciate.thx again
nice one
Thanks Saku
@@Mukeshotwani welcome 😄
Hi Mukesh, Can you pls explain what is the importance of static methods in Java. Also why don’t we create all the methods as static, so that there is no need of creating objects to call the variables and methods of a Class?
Hi Esha,
Let me explain with an example because it is very interesting and important.
Let's assume you have static variable WebDriver driver and you want to run test in parallel then it wont execute and it will run test one by one.
If you do not make variable as static then you can run test in parallel because each time new instance will be created.
Now lets talk about method- Static methods can access only static variable and non static method can access both the variables.
I hope it is clear now. If you still have doubt then let me know, I can record video on this.
plzz make video in detail about how to pass parameter using @Parameter in Testng
Hi Anil, I have explained the same here th-cam.com/video/z3Ruc2bKnqI/w-d-xo.html
Thank you
Thanks Praveen
Hello Mukesh, do we have any way that we can use customized method instead of '.sendkeys( )' (i mean Extension methods in selenium JAVA)
u can use JavascriptExecutor
Hi Mukesh first of all a big thank you for creating such a wonderful video... I just want to know can we use global variables instead of declaring a return type and which is a better approach out of the two ?
Hi Chiranjibi,
using global variables is not a good approach as it is against data hiding concepts of OOPs.
so using return types is a better approach.
Hi Mukesh,
you are awesome, Thank you very much.
public class ThankYouMukesh{
public static void main(string [ ] args) {
system.out.println("Thank" "You" "Mukesh" )
}
}
New way for comment. Appreciated :)
Hai Mukesh ,Still some confusion over calling Non static Methods and static methods ,,If we declare variable as static in Non static methods can dos variables can be access all over the class ?
Thanks, Mukesh
Hi Mukesh I am from development background and new to Selenium how can I get Job in Selenium
What are the things I have to cover?
I have learned java from your channel is it enough?
What are the topics I have to cover to clear interview
I really appreciate your suggestions
You are doing good Job keep doing
Hi Rahul,
I understand that my reply to you must be very late by now, but still i want to share my view on this question as I had the similar queries/doubts some time ago.
Let me answer each of your questions one by one :
1. What are the things I have to cover?
2. What are the topics I have to cover to clear interview
?
Do you mean in Java or in Selenium ?
3. I have learned java from your channel is it enough?
Yes, Mukesh's videos should be enough for selenium learning , selenium does not require you to be a Java Master, if you have the basic understanding you can learn.
I hope this helps.
Hello Mukesh, What if i want to return boolean ,is it poosible ?
Thank you so much Mukesh!!
Welcome mate.. How u doing?
Is there any video available for call by reference and call by value ?
Not yet Romita :(
Hello please explain what is return value .im from a completely different stream so i didnt get it
Super
Thanks jassi
Hi mukesh this may be a silly doubt...but how can we use methods of other class in some other class without using EXTENDS keyword,as you did in dynamic calculator method.........
thanks in advance
Yes we can. Either create object of that class and then call or you can create that method as static and then call using dot operator.
Bro I am getting error without using inheritance.......
Hello Mukesh , I am not able to access Methods from other class Though I have created a respective obj to access the methods.
+Akula Bhaskar Hi Akula make sure class and methods are public
public class Paramdemo {
public static void main(String[] args) {
Paramdemo obj1=new Paramdemo();
obj1.sub();
obj2.sum();
}
}
}
public class Paramdemo2 {
public int sum (int a, int b) {
int c = a + b;
return c;
}
public double sum(double d, double f) {
double a = d + f;
System.out.println("Print " + z);
return a;
}
public int sub(int c, int d) {
int z = c + d;
return z;
}
}
This is the correct code :
public class methodDemo {
public static void main(String[] args) {
methodDemo obj1=new methodDemo();
int x = obj1.sub(15, 10);
System.out.println("Subtraction "+x);
int y = obj1.sum(100, 15);
System.out.println("Addition "+y);
}
public int sum (int a, int b) {
int c = a + b;
return c;
}
public double sum(double d, double e) {
double f = d + e;
return f;
}
public int sub(int g, int h) {
int i = g - h;
return i;
}
}
@@akulabhaskar3797 u have to create the object for the class in which all the methods are existing not for the main method class
Hi Mukesh .sendkeys is not working as my Eclipse is 1.7 windows 32 bit system What should i do ?
which Selenium version u are using ? please share your program with exception
Can a method have more than return statement?
One method can have only one return statement and that too will be last statement of the method
@@Mukeshotwani Hi Mukesh,
I wants to access of your framework and interview questions .let me know how i can do this .
Thanks
Durjan (durjansingh10@gmail.com)
why did you call dynamic calculator.getmyfullname instead of obji.getmyfullname?? please answer
Hi Sonia, There are 4 scenarios so to explain diff i called calculator.getmyfullname
Hi Mukesh,
Thank you bro for ur wonderful videos.
I am new to java ur videos are helping me a lot.
A quick question, Why do u get a large number when u do subtraction using double.
Eg: 7488.2345896
Any theory or logic behind this.
Regards,
Srikanth
Hey Shry Thanks