I couldn't thank you enough, but i pray may god give you strength and power to complete this course and also do many things great in life. I believe that if this course goes the same way its going now it will change life of lakhs.Thanks for being a helping hand
To all the new comers : In 30:56 when Kunal says in Java there is no such thing as pass by reference he means that there is no any way by which we can pass the primitive data types as reference in java. For example in C++ we had & and * operators by which we could pass the memory address of any variable we want ( even primitive variables like int, char, float etc ) and we can always achieve pass by reference but in java there are no such & and * operators. But in java we do have certain reference variables like classes, arrays. Since they are already a reference variable passing them through function might look like a pass by reference but that is because the variable name already is a reference to data in heap memory. So DO NOT BE CONFUSED
in call by value example when he pass the primitive value to the function he tells that here we not change the value of the object we create the new object this is wrong and he didn't explain right
Best DSA series ever I would like to say. Content made just for the sole purpose of teaching people. Thank you Kunal for such great explanations. you are truly a great Teacher.
Very nice explanation, i am having more that 13 years of experience in java but still watching just to learn how you are teaching and explaining... very helpful for any new person who wants to understand java. Good job, much appreciated ... keep it up...as of now i have forwarded your chhanal link to more than 20 freshers... nice contribution towards community...
One more interesting observation about VarArgs: If you have 2 functions with the same name (i.e you are overloading a function) eg:- fun(int p,int q) and fun(int ...v) and if you call fun(10, 20) from the main function then function accepting the exact number of parameters( fun(int p, int q) in this case ) will be executed and VarArg function( fun(int ...v) in this case) will be ignored. hope it helps! :)
I just found the best way to understand scope. So think the outer variables as the king and the inner variables in a block or loop to be the common people. The king can visit the common peoples home at any time but common peoples can't visit the king usually. It's something I came up in my mind & thought would be helpful for you.
00:02 This video covers functions and methods in Java. 04:14 Understanding functions and methods in Java 13:25 Functions and methods in Java 17:28 Understanding arguments in Java methods 23:55 Functions and methods in Java are essential for coding 28:13 Understand passing by value in Java functions 35:21 Understanding functions and methods in Java 38:58 Understanding functions and methods in Java 46:58 Understanding functions in Java 51:05 Understanding methods in Java 57:57 Functions in Java are used within a specific scope. 1:01:09 Understanding object independence in Java 1:08:52 Functions in Java can have multiple arguments and different forms 1:12:43 Function overloading allows multiple functions with the same name but different parameters 1:19:57 Understand the Square Root Method in Java 1:23:01 Explaining Armstrong Numbers in Java 1:30:22 Encouraging viewers to subscribe Crafted by Merlin AI.
1:22:16 So for the prime number function, I am writing this code because it is less and easier to write : static void prime(int n) { boolean prime = true; for(int i = 2; i
now you are my only hope to learn dsa in a much simpler way. your way of explanation is perfect and crystal clear. thank you so much for such amazing content. ❤
For scoping to be simple , folks, global scope objects is accessed by other scopes, but not vice versa and, change in value in block scope may apply to global scope.
U r right kunal there is no video in youTube Or in other platform for free like yours.. Definitely you spent more than 4-5 hrs to do such kind of video... Great work please cmplt the series... Thanks
at 45:00 whosover is having doubt in change value read this: like in the video he has said that pass by value works on primitve datatypes like string, int char byte etc,whereas objects and stuffs like array which is not a primitive datatypes, its a reference variable(collection of ints or any data type that I declare) so that's why the value of arr[0] got changed since array itself was the reference.hope this might help
00:02 Functions in Java play a vital role and are important in various sectors 04:14 Functions / Methods in Java 13:25 Functions and methods in Java 17:28 Functions and methods in Java 23:55 Functions and methods in Java 28:13 Functions / Methods in Java - Summarized 35:21 Functions in Java allow you to define reusable blocks of code. 38:58 Functions in Java 46:58 Functions in Java provide a way to perform specific tasks. 51:05 The video discusses how to initialize and print variables in Java. 57:57 Functions / Methods in Java can be used outside the class. 1:01:13 Functions / Methods in Java 1:09:03 Functions/Methods in Java 1:12:50 Function overloading allows multiple functions with the same name but different parameters or return types. 1:20:07 Functions / Methods in Java 1:23:08 Functions / Methods in Java 1:30:23 Next video Crafted by Merlin AI.
I've learned Python and Dart in the past, and this course is exceptional in quality and depth. I'm truly impressed and grateful for the in-depth content. Thank you, and may your work continue to benefit many more students. 💌
Well bhaiya, currently I don't have time to watch these lectures but even then I make sure to leave a thumbs up to your every video coz we trust you with all our heart. And most importantly at the end me too will follow this series. ❤
At 1:22:14, prime number solution - do we really need to write -> return c * c > n at line number 24 or we can simply return true as code flow will reach on line 24 only when while boolean clause is false, thus c * c > n will be always true when flow reaches line 24. Thoughts ?
Thanks for such great videos. I am in class 10th and wanted to learn Java . Explanations are so simple that I can understand easily.❤️❤️ Any tips for me?
Best paylist for DSA thank you so much kunal I started this just few days ago. I was very worried as I was not getting concepts . thanks for this great playlist❤
in case anyone still confused about change value part, just remember methods do activities and NOT implementations....so in case of int array, the method is doing the activity of putting the value of 99 in 0 index ,,where as in case of string name , it is trying to implement the value,,,,thanks
Okay so, had to watch the Pass by value and pass by copy of the value of the reference part, to make it more clearer, but yes, u made it clear enough ! ❤❤❤❤
I would like to correct Kunal sir, He somehow interpreted initialization and declaration as same but declaration is telling the java compiler what type of variable I want (which means datatype of the variable). initialization is storing value or referring to object (Note :::primitive data types stores in stack memory they do not refer particularly in java whereas python differs, referring datatype do refer to an object.) Edit:: however he explain it in 1:05:19
i will upload the answers to the assignmets given. i will try to solve all of them. i m also new into Java and if i could solve it, i will help others too.! :)
The mic is distracting, but its awesome either way. Keep up the good work, I am in final year CS major, and i am coping up to learn some good coding skills.
Hey Kunal ur all vedios are so amazing that I can't express. Ur every vedio link that pops out I immediately click on that. Thank u so much for ur hard work and consistency. But plss don't stress urself so much upload vedios at ur own time ur health is also important.☺️☺️
1.sum of 2 nos using void as return type 2.sum of 2 nos using int as return type 3.string as return type 4.passing arguments Swap 5.Scoping 6.Shadowing
Wow the explanation is just so perfect i can surely say that ur the best best best programmer and a teacher is well ur just the BEST!!!! u just explained all these topics so easily that these are damn impactfull and easily understandable 👌👌👍👍🙏🙌
Thank You So much Kunal for this Bootcamp!! Everything is Clearly Explained and Interestingly. I'm having my placements in the next month, so please try to cover all the syllabus asap! that is my Kind Request :)
DSA + interview preparation playlist: ua-cam.com/play/PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ.html
I couldn't thank you enough, but i pray may god give you strength and power to complete this course and also do many things great in life. I believe that if this course goes the same way its going now it will change life of lakhs.Thanks for being a helping hand
Ab toh sach bolde
To all the new comers : In 30:56 when Kunal says in Java there is no such thing as pass by reference he means that there is no any way by which we can pass the primitive data types as reference in java. For example in C++ we had & and * operators by which we could pass the memory address of any variable we want ( even primitive variables like int, char, float etc ) and we can always achieve pass by reference but in java there are no such & and * operators.
But in java we do have certain reference variables like classes, arrays. Since they are already a reference variable passing them through function might look like a pass by reference but that is because the variable name already is a reference to data in heap memory. So DO NOT BE CONFUSED
Thank you
Thanks Amrit
in call by value example when he pass the primitive value to the function he tells that here we not change the value of the object we create the new object this is wrong and he didn't explain right
thanks a lot
thanks dude
1:22:46 At line no.24 we can also use return true instead of c*c>n because if above two conditons fails then c*c>n has to be true
The best coding teacher i found in entire UA-cam. You are just like beyond pro level ♥️
Those who are studying first can also do it with these
Best DSA series ever I would like to say. Content made just for the sole purpose of teaching people. Thank you Kunal for such great explanations. you are truly a great Teacher.
It's my pleasure
@@KunalKushwaha sometimes i wonder how you such a gentleman , thank you for this series .
Man the explanation is so perfect . Concepts of shadowing scoping varargs were made so easy. Great work!! Looking forward to Arrays❤️
Glad you liked it!
Agreed💯
@@KunalKushwaha I love you
@@KunalKushwaha Please keep posting,such a great content.
@@KunalKushwaha I can't get the notes
Very nice explanation, i am having more that 13 years of experience in java but still watching just to learn how you are teaching and explaining... very helpful for any new person who wants to understand java. Good job, much appreciated ... keep it up...as of now i have forwarded your chhanal link to more than 20 freshers... nice contribution towards community...
One more interesting observation about VarArgs:
If you have 2 functions with the same name (i.e you are overloading a function)
eg:- fun(int p,int q) and fun(int ...v)
and if you call fun(10, 20) from the main function
then function accepting the exact number of parameters( fun(int p, int q) in this case ) will be executed and VarArg function( fun(int ...v) in this case) will be ignored.
hope it helps! :)
Nice observation
So, it means if we call fun(10, 20, 30) or fun(10), then the fun( int ....v) will be executed, right.
@@vrashabhsontakke7282 yes
Yes Bro Notice that.
nice thank u😁😁
I just found the best way to understand scope.
So think the outer variables as the king and the inner variables in a block or loop to be the common people.
The king can visit the common peoples home at any time but common peoples can't visit the king usually.
It's something I came up in my mind & thought would be helpful for you.
i have watched your previous videos and now I am giving likes to each of your video before even watching it Much respect
you are very kind
Timestamps:
0:00 Introduction
1:58 Problem Statement
5:31 Methods
5:41 Syntax of a Method
6:40 🎯 Program : Sum of two numbers
9:11 🎯 Program : Greetings
11:18 Returning Values
14:31 Returning a String
17:42 Parameters (Integer Function)
20:36 Parameters (String Function)
25:03 🎯 Program : Swap two numbers
25:25 🎯 Program : Pass Value
29:39 Internal Working of Swapping Program
41:33 🎯 Program : Change Value
46:41 Scope
47:00 Method Scope
49:46 Block Scope
55:32 Loop Scope
59:44 Shadowing
1:06:53 Variable Arguments (Varargs)
1:12:07 Method Overloading
1:19:25 🎯 Questions
1:20:01 Q1 : Prime Number
1:23:52 Q2 : Check Armstrong Number
1:28:27 Q3 : Print All 3 Digit Armstrong Numbers
1:30:18 Outro
Thanks!This helped a lot for learning new things 😃 and the way of your teaching style is certainly fabulous❣️💥
This is literally amazing explanation. I am at the 2nd year and still learnt alot from this amazing lecture!
Glad you enjoyed it!
00:02 This video covers functions and methods in Java.
04:14 Understanding functions and methods in Java
13:25 Functions and methods in Java
17:28 Understanding arguments in Java methods
23:55 Functions and methods in Java are essential for coding
28:13 Understand passing by value in Java functions
35:21 Understanding functions and methods in Java
38:58 Understanding functions and methods in Java
46:58 Understanding functions in Java
51:05 Understanding methods in Java
57:57 Functions in Java are used within a specific scope.
1:01:09 Understanding object independence in Java
1:08:52 Functions in Java can have multiple arguments and different forms
1:12:43 Function overloading allows multiple functions with the same name but different parameters
1:19:57 Understand the Square Root Method in Java
1:23:01 Explaining Armstrong Numbers in Java
1:30:22 Encouraging viewers to subscribe
Crafted by Merlin AI.
my whole java syllabus of college is done by here only
thanks lot for making awesome videos
All the best
Is that enough??
1:22:16 So for the prime number function, I am writing this code because it is less and easier to write :
static void prime(int n) {
boolean prime = true;
for(int i = 2; i
no need to check 'i' till the 'n'. you may only check untill the
@@omegajoint7339Kunal also explained this one in the beginning of the playlist
now you are my only hope to learn dsa in a much simpler way. your way of explanation is perfect and crystal clear. thank you so much for such amazing content. ❤
Although I had already viewed this lecture, I came back to learn the concept of scoping more clearly
Handwritten notes are the best for revising at the last moment. Amazing video Kunal ,Lots and lots of learning from this amazing lecture.
So nice of you
Where is handwritten notes... Can u share the link
Hand written notes plzz🥺🥺
Where is the notes?
@@tanvimehta120 Notes are in his github link which is in discription of video
For scoping to be simple , folks, global scope objects is accessed by other scopes, but not vice versa and,
change in value in block scope may apply to global scope.
Kunal you'll definitely grow in your career, even an experienced developer can't give this level of explanation for functions.Keep up
he did
No, even a beginner would know that. I knew that stuff in my 1st semester
U r right kunal there is no video in youTube Or in other platform for free like yours.. Definitely you spent more than 4-5 hrs to do such kind of video... Great work please cmplt the series... Thanks
So nice of you
Couldn't have been explained in a better way. Keep growing and spreading your knowledge.
It is not one of the best It is THE BEST course of DSA . Love you bro ❤❤
No
its part of core java😂you thinking it ds LOL😂
at 45:00 whosover is having doubt in change value read this: like in the video he has said that pass by value works on primitve datatypes like string, int char byte etc,whereas objects and stuffs like array which is not a primitive datatypes, its a reference variable(collection of ints or any data type that I declare) so that's why the value of arr[0] got changed since array itself was the reference.hope this might help
thanks a lot
Your teaching is highly comprehensible
this is best method and function lecture for any one on the youtube.
Best in teaching. Clearing all doubts. Thankyou for this playlist.
00:02 Functions in Java play a vital role and are important in various sectors
04:14 Functions / Methods in Java
13:25 Functions and methods in Java
17:28 Functions and methods in Java
23:55 Functions and methods in Java
28:13 Functions / Methods in Java - Summarized
35:21 Functions in Java allow you to define reusable blocks of code.
38:58 Functions in Java
46:58 Functions in Java provide a way to perform specific tasks.
51:05 The video discusses how to initialize and print variables in Java.
57:57 Functions / Methods in Java can be used outside the class.
1:01:13 Functions / Methods in Java
1:09:03 Functions/Methods in Java
1:12:50 Function overloading allows multiple functions with the same name but different parameters or return types.
1:20:07 Functions / Methods in Java
1:23:08 Functions / Methods in Java
1:30:23 Next video
Crafted by Merlin AI.
Kunal, The shadowing and VarArgs explanation was great. Appreciate af.
bhaiya kya clear kra h ye scoping ka concept ........🤩🤩
The channel should be named "Hey Kunal"
Love what you are doing sir. May God bless you.
I've learned Python and Dart in the past, and this course is exceptional in quality and depth. I'm truly impressed and grateful for the in-depth content. Thank you, and may your work continue to benefit many more students. 💌
Best course on DSA . Far superior than many paid ones.
Well bhaiya, currently I don't have time to watch these lectures but even then I make sure to leave a thumbs up to your every video coz we trust you with all our heart. And most importantly at the end me too will follow this series. ❤
Why can't you follow this series now? What are u so busy with
46:33 in java we dont have pointers....Me: Finally inner peace😂😂
Me too
@@KunalKushwaha lol Programming lang are made by and for lazy people.
😂😂😂😂😂😂😂😂😂😂
Wow great explanation.i want to marry you 😊
why u hate pointers?
At 1:22:14, prime number solution - do we really need to write -> return c * c > n at line number 24 or we can simply return true as code flow will reach on line 24 only when while boolean clause is false, thus c * c > n will be always true when flow reaches line 24. Thoughts ?
Yeah... Same doubts here...i don't know why it is like that...
You are putting video in sunday also.
Really appreciate your work.
And you are amazing teacher
I was always struggling with this scoping thing, now its clear thanks kunal :)
Thank you so much sir. Its very clear to understand each concept. Teaching is very nice. waiting for more videos like these.
Thanks for such great videos. I am in class 10th and wanted to learn Java . Explanations are so simple that I can understand easily.❤️❤️
Any tips for me?
Best paylist for DSA thank you so much kunal I started this just few days ago. I was very worried as I was not getting concepts . thanks for this great playlist❤
Your explanation is crystal clear . loved the style you teach the things so simply. You are doing great job ....
This is the best explanation on functions!🔥
Glad it was helpful!
@@KunalKushwaha Bro from where can I practice questions on each topic ??
@@trusfrated_jungshook assignment link is in github link in the video description
@@KunalKushwaha thankx bro ❤
💯💯
no one explained about return type this clear!!!! thank you !!!!!!!!!!!!!!!!!!!!!!3
One of the best channel for java+dsa series
Loved the clear and correct explanation
literally, you the cutie. to the point explaination. thank youuu sir!
Just Amazing, This Course is better than paid courses.
This will be an awesome one too!! I am commenting before even watching!! Thanks Kunal!
I have never seen any tutorial with this much details and depth. Great Work Brother 👏
Glad you liked it
in case anyone still confused about change value part, just remember methods do activities and NOT implementations....so in case of int array, the method is doing the activity of putting the value of 99 in 0 index ,,where as in case of string name , it is trying to implement the value,,,,thanks
then why did it not change for swapping also? It is also doing an activities.
I have some doubts in the early minutes of this
In the next few minutes it was all cleared
Very much thanks for the clarity in the concepts
Super se bhi upar hai ye DSA playlist..Kudos To Kunal
After watching more than 8 video...i found a better explanation in this video... love you bro
I don't know about shadowing and varargs before but now I know that very well.
There's some magic in the way you teach.
Finally I am satisfied with some lectures.thanks bhiya sooo much.
Thanks!
Best out of Best Brother Hats offf to you...
Thank you, Kunal for making videos even on weekends for us. :)
Okay so, had to watch the Pass by value and pass by copy of the value of the reference part, to make it more clearer, but yes, u made it clear enough ! ❤❤❤❤
Such a great man.
I have no words to express my gratitude 🙏🏻
Thanks a lot
Kunal is going clear all my doubts in DSA...loved it
I'm not from CS background but interested in coding so I attending your class since few days now I feel so comfortable in Java.. Thank you Man❤️
@@Learning_and_study12363it’s man 😂not mam
@@dayabhusal7519 lagta hai chasme ka number badh gya mere😅
btw sorry for wrong comment😅
I would like to correct Kunal sir,
He somehow interpreted initialization and declaration as same but declaration is telling the java compiler what type of variable I want (which means datatype of the variable).
initialization is storing value or referring to object (Note :::primitive data types stores in stack memory they do not refer particularly in java whereas python differs, referring datatype do refer to an object.)
Edit::
however he explain it in 1:05:19
i will upload the answers to the assignmets given. i will try to solve all of them. i m also new into Java and if i could solve it, i will help others too.! :)
Keep it up
It covers all things . Thank you kunal for the wonderful lecture
Thanks for the late-night video!
Bro you are nailing this course....Thanks a lottttttttt
The mic is distracting, but its awesome either way. Keep up the good work, I am in final year CS major, and i am coping up to learn some good coding skills.
me too
@@tejassingh2971 i just completed my 1st year starting this course
Love you bhaiya ....we feel proud that learning in this amazing way under you ❤❤❤
Can I start learning Java without having mastery in C or C++?
Day 7 of learning DSA...✅
THANKYOU SO MUCH SIR..😇
Where can I find answers for assignments on GitHub?
Thanks brother you will going to create a new community with a student with best knowladge..
Hey Kunal ur all vedios are so amazing that I can't express. Ur every vedio link that pops out I immediately click on that. Thank u so much for ur hard work and consistency. But plss don't stress urself so much upload vedios at ur own time ur health is also important.☺️☺️
The best bootcamp ever👌🏻
really beneficial for all of us!.
1.sum of 2 nos using void as return type
2.sum of 2 nos using int as return type
3.string as return type
4.passing arguments
Swap
5.Scoping
6.Shadowing
Day 3 here am in 2nd year and i hope i will nail everythtng though i wasted 1st yr. The way u taught the concept of block scope i loved it man
i wasted both my 1st year and 2nd year..3rd year started and atleast now i hope to get serious!
Wow the explanation is just so perfect i can surely say that ur the best best best programmer and a teacher is well ur just the BEST!!!! u just explained all these topics so easily that these are damn impactfull and easily understandable 👌👌👍👍🙏🙌
i love the way you explain kunal sir.. i am your junior from college
No one could have explained better than this
Good teaching comes from a good heart
You are much man, you handled java the way it is really easy to understand the concepts
Thank You So much Kunal for this Bootcamp!! Everything is Clearly Explained and Interestingly.
I'm having my placements in the next month, so please try to cover all the syllabus asap! that is my Kind Request :)
Have you been placed or not
At 1:02:50 , sir you reinitialize the x value . Isn't it contradicts the concept of scoping
We can't initialise again
Finest Video on this topic . Great Job Man Hatt's off to u
amazing lecture kunal, hands on programming and problem solving is the best.
Very Good explanation never listened this type lecture in my carrier😊😊
Brother, your explanation is very nice. You are teaching very perfectly. Thank you for this helpful playlist 👍👍
this is the best thing i have come across
Numbers speaks .Power of kunal bhaiya is such that there is 0 Dislike . Bhaiya i cant resist any more plz upload 5-6 vids everyday .BTW thank you
3:57 My inner voice screaming: USE WHILE LOOP!
you are amazing bro!! much appreatiated 👏👏👏👏
never learned programming this deeply
The 'opportunities' playlist was very helpful, please start it if possible for community classroom too .
for my reference
1:20:02 - prime no
1:24:00 - armstrong no
Excellent lecture and explanation🎉
31:11 it should be - A copy of reference variable is passed ?
then only "this is a copy of this " makes sense(31:26).
Guys, am I correct?
Hey Kunal i appreciate your hardwork bro, try to complete the course as soon as possible,in 2 months.