It's been 38 days since I have started learning, some days were too difficult for me to concentrate but still I'm on the go untill I finish this whole playlist and anyone learning or has just started or whoever gonna start in future, we all gonna make it. Take rest, take your own time but don't quit.
Wow!!!!... Amazing Harry bhai.. All concepts cleared. I came here after listening so called paid course lectures.. You are doing amazing work.. i have taken printouts of all your notes & they are helping me a lot while doing this java course. God bless you Harry bhai..!
11:45 Change function will update the value of arr at index 0 because when we pass array to function/method it will actually pass the address of the value , therefore it is call by reference and it will definitely change the value of array at index 0 and print 98
If thats the case then for the integer , we passed x which is reference for 45 ,shouldn't a get x and x is the address of 45 so it should change based on your logic right..? I listened to it many times but couldn't understand it properly. I would appreciate you if you could elaborate it for me
@@TabraizKhan-iv1cl suppose you have an array which is array1 = {1,2,3,4} and have a variable, int x = 6 so if you print the variable x it will give you 6 : system.out.println(x) = 6 and when you print the array it will give you the address of the array like this : [I@4517d9a3 so when you're passing x (int variable) in a method the thing you're passing is 6, because x = 6 you are not passing the address or reference of int x but when you're passing an array you are not passing the integers in array but the address of the array : [I@4517d9a3 and because you're passing the address of array the method is changing the actual array not a copy. in int x = 6 case you are passing 6 not the address of x that's why it is changing the copy not the actual x I hope you understood i can further help you if you didn't understand
I never thought That I will Be knowing this much number of Programming langugae.... You are my true programming teacher. I never used to think That I will become a that sort of programmer . Thanks a lot Harry Sir ....May you get 100 Billion Subscribers and Views .. I have a wish to meet you one day 😀😀 and Sir pls bring Constructors fast
Harry I usually refrain from putting up comment... But Your explanation is spectacularly awesome......that i couldn't stop myself to praise your way of teaching.... I LOVE YOU BROTHER
@@TabraizKhan-iv1cl yes, in call by value, copy of value is taken. Arrays in Java are always created in the heap memory. When an array is passed to a method, it is always passed as a reference, the array will not be copied, two variables will refer to the same array.
Hello sir, your teaching style is awesome. I am beginner but after watching your tutorials I have created my hobby as a android dovelopper. So thanks a lot sir for providing these good stuff for beginners.
Really, His work is very much appreciable! and he deserves much more than what he is getting now. Greatest teacher ever! I have no words to define you. Salute, Brother.
harry bro you are amazing like institutes are teaching those courses like java,c++,python etc for 5000rs (approx)per month and you are teaching us for free amazing brother you are my guru ❣💖
In the example of (12:00), *value* is changed because "array" is not a primitive data type. (Harry said it previously that, this happens with primitive data types only). Same thing happens in integer as well as array, but in case of array only the reference is copied. Hope you are getting the point! It's alright if you got it wrong. Even I got it wrong at first 🙃
@@zainabkazi4102 inshort the value changed for variables because they are premetive data type but array is not premetive data type so you were able to change !!! premetive data types are (Boolean, char, byte, int, short, long, float, and double.)
12:07 It will print 98. The value of array is changed because the reference of array is passed to the function. It didn't change during the integer because while passing an integer, the value was passed to the method.
11:52 the value of marks[0] will be changed because the address of the array will be passed in the function and all the changes will be reflected in the original array
11:50 the value at index 0 gets changed as whenever array is passed , array referrences are passed changing the value formally as well as in main method
11:48 Sir I think the value will change cuz I learned in your C in one video that in case of passing an array, the address is passed which is capable of changing the value of an array Baaki pata ni😅😅😅😅
apki mahanath or lagana ko 21topko ki salaamii.sir jeee ☺️☺️☺️🙌🙌🙌, hame kuch sikhe ya ni sikhe ye baat alg hai par apki mahnath hi hame bhot kuch shikha de gi , padane ka trika to dassuuu hai.sir aapka 👌👌👌☺️☺️☺️, bhot zor, bhot tagda , katay aagg 🙌🙌🙌🙌🙌🙌c++, java , python all vedio ara amazing 👌👌👌
@harry 21:44 You said method overloading cannot be performed by chnaging the return type but in your source code site you have mentioned it can be perfomed by changing the return type. Please clear the confusion.
20.22 : "Arguments are actual " Ye line kisi ne mujhe batai thi or ye mere dimaag m baith gyi thi.............This exact same line I'm gonna tell to my younger brother and sisters .🤩🙌
@@musiciantirth3710 But ML with basic to high mathematics I mean a separate course of mathematics for ML and AI with basics of python modules necessary for ML and AI
11:45 It will change the value of array at index 0 because you said it will pass the reference of array rather than passing copy of the original array.
11:46 Output: The value of x after running change is: 98 Reason: Because Here in case of array the reference of array is pass thus it can change the value of arr[0]
In simple terms when you create a array with a variable ,the variable get the address of the first index of that array. and when you pass the array the same address is send to method so changes done are permanent and effect the original copy.
for personal understanding: When a primitive data is passed to a method in this case a copy of the primitive data is made and any changes that happen inside the method affect the copy and not the original primitive data due to this we will not see any change in the original primitive data however in terms of object the reference of the object is passed in the method and not the original object itself due to this a copy of the reference is made in the method and not a copy of the object. Now, since the original reference of the object actually pointed to the address of the object, the copy that is made in the method i.e. the copied reference; this reference will also hold the same address in it. Since both references point to the same address, due to this any changes that are made in the copied reference end up affecting the actual object.
Method overloading can also be performed by changing the return type of methods, but you have to change the type of parameters also. public class Main { static int plusMethod(int x, int y) { return x + y; }
Thanks for explaininng clearly in short videos. I''ll watch all videos in your JAVA playlist. Can you make a playlist for DBMS too it will be very helpfull.
Now 32 out of 113.... 😊
Notes + video + explaination in easiest way = No doubt all clear
👍👍👍❤️🙏
It's been 38 days since I have started learning, some days were too difficult for me to concentrate but still I'm on the go untill I finish this whole playlist and anyone learning or has just started or whoever gonna start in future, we all gonna make it. Take rest, take your own time but don't quit.
bro how much have u covered ?
u watched just 0.77 video per day?
@@mrunknown855 its about consistency ; consistency is not everyone's cup of tea !!
@@jatindubey7892 true in starting i was watching 5-6 videos daily and now I can't sit for one video but still trying to be consistent atleast
did u start java as your 1st programming language? In which year rn?
Call by value vs call by reference is clearly explained.
Thankyou Harry bayya ❤️
Time stamp?
@@parinkoralwala3653 case1 explains the call by value concept and case 2 explains call by reference concept bro.15:00
Wow!!!!... Amazing Harry bhai.. All concepts cleared. I came here after listening so called paid course lectures.. You are doing amazing work.. i have taken printouts of all your notes & they are helping me a lot while doing this java course. God bless you Harry bhai..!
11:45 Change function will update the value of arr at index 0 because when we pass array to function/method it will actually pass the address of the value , therefore it is call by reference and it will definitely change the value of array at index 0 and print 98
Tq bhai now I understood
thanks bhai.😇
If thats the case then for the integer , we passed x which is reference for 45 ,shouldn't a get x and x is the address of 45 so it should change based on your logic right..? I listened to it many times but couldn't understand it properly. I would appreciate you if you could elaborate it for me
@@TabraizKhan-iv1cl suppose you have an array which is array1 = {1,2,3,4} and have a variable, int x = 6
so if you print the variable x it will give you 6 : system.out.println(x) = 6
and when you print the array it will give you the address of the array like this : [I@4517d9a3
so when you're passing x (int variable) in a method the thing you're passing is 6, because x = 6 you are not passing the address or reference of int x
but when you're passing an array you are not passing the integers in array but the address of the array : [I@4517d9a3
and because you're passing the address of array the method is changing the actual array not a copy.
in int x = 6 case you are passing 6 not the address of x that's why it is changing the copy not the actual x
I hope you understood i can further help you if you didn't understand
I respect your notes and also appreciate you hard work. I try my 100% to learn java and till now I understand all things. 23:33
I never thought That I will Be knowing this much number of Programming langugae.... You are my true programming teacher. I never used to think That I will become a that sort of programmer . Thanks a lot Harry Sir ....May you get 100 Billion Subscribers and Views .. I have a wish to meet you one day 😀😀 and Sir pls bring Constructors fast
@CodeWithHarry Thanks for hearting My comment sir
Means that every person on earth should subscribe with 15 accounts
@@madhursikarwar8531 wapas le liya heart lmao
Harry I usually refrain from putting up comment... But Your explanation is spectacularly awesome......that i couldn't stop myself to praise your way of teaching.... I LOVE YOU BROTHER
The concepts of call by value and call by reference are perfectly clear now..❤️❤️❤️
so what happens actually if you call by value, copy of value is taken and then..?
He said that it is no different from what happened to array .
@@TabraizKhan-iv1cl yes, in call by value, copy of value is taken. Arrays in Java are always created in the heap memory. When an array is passed to a method, it is always passed as a reference, the array will not be copied, two variables will refer to the same array.
video Number 32 11:57 Not Change in Actual Array
Thank You Harry Bhai For Lunch java Best Course 😊🙏🙏🙏🙏
Hello sir, your teaching style is awesome. I am beginner but after watching your tutorials I have created my hobby as a android dovelopper. So thanks a lot sir for providing these good stuff for beginners.
At 12:05 it will print " 52 ", because even though the method has changed the copied value but has not returned it to the main function.
I have seen all your c and c++ playlist videos good going dude
And thanks a lot for helping collage students like me from these videos
His notes are really outstanding and very much helping + perfect !
Thank you for teaching us so nicely. You're the best programming teacher on youtube
Really, His work is very much appreciable! and he deserves much more than what he is getting now.
Greatest teacher ever!
I have no words to define you.
Salute, Brother.
harry bro you are amazing like institutes are teaching those courses like java,c++,python etc for 5000rs (approx)per month and you are teaching us for free amazing brother you are my guru ❣💖
You are my true programming teacher.
In the example of (12:00), *value* is changed because "array" is not a primitive data type.
(Harry said it previously that, this happens with primitive data types only).
Same thing happens in integer as well as array, but in case of array only the reference is copied. Hope you are getting the point!
It's alright if you got it wrong. Even I got it wrong at first 🙃
i rewind the video thrice but still not able to understand the difference in call by value n call by reference
@@zainabkazi4102
inshort the value changed for variables because they are premetive data type
but array is not premetive data type so you were able to change !!!
premetive data types are (Boolean, char, byte, int, short, long, float, and double.)
@@atifasadkhanbut we can change the value of primitive data type through call by reference.
@codewithharry sir apke video dekh kar aisa lagata hai ki aapse behtar coding me to koi nhi lagata hai 🤟🤟🔥🔥💯💯💯💯🔥🙏
I have learnt this but I was not this much clear with it thanks to you .Now I know the logic behind method and method overloading
Hey Harry,you’re doing an awesome job .Keep up the good work and best of luck for future !Love from Melbourne ,Australia .
@Ledger Kalel WHAT...!!
How
@@a.kzestos2085 😂😂😂wahhh
Gajab topi baaz admi hai 😂😂
@@sushantkumarkapri3542 😂😂😂😂😂
@@akshatkumar9003 kyo hag ra h bhai comment section me?
You are doing a great job. Thanks to you I am getting better day by day in coding.
12:07
It will print 98.
The value of array is changed because the reference of array is passed to the function. It didn't change during the integer because while passing an integer, the value was passed to the method.
How is that same case then. He said it in the video that for integer it is no different compared to arra
11:52 the value of marks[0] will be changed because the address of the array will be passed in the function and all the changes will be reflected in the original array
12:05
Value of marks[0] is 98.
So '98' will be the output
thamk you very much harry bhai love you a lot
bcz of you i am more motivated in coding and started to love java
11:50 the value at index 0 gets changed as whenever array is passed , array referrences are passed changing the value formally as well as in main method
your way of teaching is exceptional
11:48
Sir I think the value will change cuz I learned in your C in one video that in case of passing an array, the address is passed which is capable of changing the value of an array
Baaki pata ni😅😅😅😅
same
lets see what happen
sir ,your lecture is very benifical and important for me
thank you Harry sir
Great. Harry Bhai, you always make a smile on our face everytime. This revolution is going to be legendary.🙇🏻♂️🙇🏻♂️
yes
Thanka for coding classes you are the best programming teacher
Great course! Thanks for the efforts Harry!
apki mahanath or lagana ko 21topko ki salaamii.sir jeee ☺️☺️☺️🙌🙌🙌,
hame kuch sikhe ya ni sikhe ye baat alg hai par apki mahnath hi hame bhot kuch shikha de gi ,
padane ka trika to dassuuu hai.sir aapka 👌👌👌☺️☺️☺️,
bhot zor, bhot tagda , katay aagg 🙌🙌🙌🙌🙌🙌c++, java , python all vedio ara amazing 👌👌👌
Harry bhai .... DS ke playlist ko continue karo please
DS
DS
Ds
DS
DS
best java coding lectures on youtube ☺☺
@harry 21:44
You said method overloading cannot be performed by chnaging the return type but in your source code site you have mentioned it can be perfomed by changing the return type. Please clear the confusion.
bahut badhiya feel aa rahi hain using this theme😍😍
Refrigerators Walla example and new theme of intelliJ mast hai bhai😊😊
20.22 : "Arguments are actual "
Ye line kisi ne mujhe batai thi or ye mere dimaag m baith gyi thi.............This exact same line I'm gonna tell to my younger brother and sisters .🤩🙌
This course is very good :)
Harry Bhai, mein bhi sirf ap sa hi Java seekh rha hon, apka lecture awesome, understandable and best in all aspects ha, mjhe bhi aik Dil do❤❤❤❤
Y O U A R E L E G E N D
Here is pro level explained java❤
Thank you harry bhaiya
Sir please Artificial intelligence , machine learning,data science pe ek course banaiye with mathematics 🙏🙏🙏
Yes sir
ML Ka To Hai
@@musiciantirth3710 But ML with basic to high mathematics I mean a separate course of mathematics for ML and AI with basics of python modules necessary for ML and AI
Yeah
Your Notes are the best.. Short and crisp.
11:45 Haan bhai change hoga kyunki agar nahi hota to aap ye nahi karwate 🤣🤣🤣 it will print 98
sahi bole bhai or aapne is comment ko edit kiya hai
@ sujata Jena aap jabhi bhi meri pehlli comment read karoge to mujhe reply bhejo
11:45 It will change the value of array at index 0 because you said it will pass the reference of array rather than passing copy of the original array.
HARRY BHAI APKI PYTHON 15 KI VIDEO ME **NOTES NAHI DOWNLOAD HO RAHA HAI**PLEASE KUCH KARIYE
IT'S VERY IMPORTANT PLEASE 🙏🙏
you are god for coding students.....
Itna sub Kuch krna ka bad . Harry bi ap sirf like ka kata hu. Thanks yar
. Sir tuse great hu. 👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍🎧👍❓👍👍👍👍👍👍👍👍👍👍👍👍👍
Mr.Harry, I am watching your java playlist. Its is very helpful and easy to learn. love from Skardu, Pakistan.🥰🥰😍
you are a such hardworking teacher, thanks a lot!
than you sir you are such a great teacher better than uni teachers
You are really a good tutor!! THANK YOU HARRY
Best Java Course Ever!
Learning java
our efforts 20 %
harry sir putting efforts 80%
11:51 Yes the value will change...
As we are passing the name of array which is actually the base address of the array
7:43 thanks for solving our confusion.🤗🤗🤗🤗🤗
It's like finally I found you. Thank you 🙏.
Thank you very much for your great lectures
11:46
Output:
The value of x after running change is: 98
Reason:
Because Here in case of array the reference of array is pass thus it can change the value of arr[0]
Thank you Harry Bhai 🙂 dil se. I got all the concepts easily
Thank you for being so kind to the community 😊😊
Thank you so much bhai !!!!! Great video ,mera kal exam hai yeh dekh ke bhot sikha mene
In simple terms when you create a array with a variable ,the variable get the address of the first index of that array. and when you pass the array the same address is send to method so changes done are permanent and effect the original copy.
thanks harry bhai for explain method of overloding 💯💯💯💯💯💯💯💯💯💯💯💯💯💯
for personal understanding:
When a primitive data is passed to a method in this case a copy of the primitive data is made and any changes that happen inside the method affect the copy and not the original primitive data due to this we will not see any change in the original primitive data however in terms of object the reference of the object is passed in the method and not the original object itself due to this a copy of the reference is made in the method and not a copy of the object. Now, since the original reference of the object actually pointed to the address of the object, the copy that is made in the method i.e. the copied reference; this reference will also hold the same address in it. Since both references point to the same address, due to this any changes that are made in the copied reference end up affecting the actual object.
Thank U sir for providing this wonderful video with notes❤
I like his videos even before watching it ❤️
Thank you so much Harry ! You are doing great ☺️
Harry Bhai your teaching techniques are awesome!!!
thanks harry for making this topic so easy .
11:48 marks 0 value is not change because marks is pass copy value (It is also known as call by value )
Yes we are able to understand.........
Harry....
Hello Harry!! You are doing such an amazing job, thanks for all your guidance.
thanks bro for teaching in very easy words .
Thanks for your videos ..dimaag ki batti jalni 💡 start ho gyi hai
11:56 The function will update the value and print 98
Time 11:56
Output
The value of X after running change is : 98
thank you so much for giving us your time.
11:51 change hoga harry bhai!
You should start your own college of coding.
Great knowledge 🙏
I love your handwritten notes.
Ha Harry Bhaiya sab concepts samajh aa rahe ha.
you are wonderful Teacher harry
Thankyou harry sir your great teacher respect++...
Method overloading can also be performed by changing the return type of methods, but you have to change the type of parameters also.
public class Main {
static int plusMethod(int x, int y) {
return x + y;
}
static double plusMethod(double x, double y) {
return x + y;
}
public static void main(String[] args) {
int myNum1 = plusMethod(8, 5);
double myNum2 = plusMethod(4.3, 6.26);
System.out.println("int: " + myNum1);
System.out.println("double: " + myNum2);
}
}
👍NICE VIDEO...... THIS JAVA PLAYLIST HELP ME A LOT.... THANKS HARRY BHAI....
Thanku u sir ...u are real guru ❤️
Thanks for explaininng clearly in short videos. I''ll watch all videos in your JAVA playlist. Can you make a playlist for DBMS too it will be very helpfull.
11:59
output:- 98
Yes sir i value your notes very much
11:48 yes it change value because of call by referring because I already know c language
12:05 yes it will as array is kinda like pointer.
For primitive data type - Methode Called by value.
For Object/ Non primitive data type- Methode Called by reference/address.
watching this playlist in 2024 and this playlist is still worth watching
12:07
the value of arr[0] will be change to 98 from 52.
mindblowing harry bhai