Java Bangla Tutorials 120 : call by value vs call by reference

preview_player
Показать описание
➡️ In this video, I will discuss call by value vs call by reference.
⭐️ Video Contents ⭐️
⌨️ (00:00) Intro
⌨️ (00:11) Call by value vs call by reference
⌨️ (10:30) Outro

🛑 Web development? Checkout following playlists :

🛑 Programming languages? Check out the following playlists:

🛑 Android development? Check out the following playlists:

🛑 HSC Students? Are you worried about ICT? I have created 377 videos for you. check out the following playlists-

🛑 CSE Students? Checkout following playlists :

🛑 MS Office? Trying to learn MS Office to improve your skill? Checkout following playlists :

#java #anisul_islam #java_bangla_tutorial #web_development #bangla_web_development #andorid #javaprogramming #javatutorial #bangla_tutorial #java_anisul_islam
Рекомендации по теме
Комментарии
Автор

একটু কষ্টকর ছিল, কিন্তু ভিডিও টা আবার দেখে ভাল মত বুঝে গেছি, ধন্নবাদ স্যার

raihanation
Автор

you deserve a big thank you.. so thank you so much..

suma_ya
Автор

Good tutorial.
Please make tutorial on data structure.

setukanti
Автор

sir, we did not declare the object r2. Then how can we use it

sadabsifar
Автор

call by reference er khetre formal object and actual object ki same address k point kore????

tasnimazadnihan
Автор

package oop;

public class CallByReference {

String name;

void change(CallByReference r2) {
r2.name = "Nishu";
}
}
package oop;

public class CallByReferenceTest {

public static void main(String[] args) {
CallByReference r1 = new CallByReference();
r1.name = "Nishat";
System.out.println("before calling : " + r1.name);
r1.change(r1);
System.out.println("after calling : " + r1.name);

}
}

nishatsultana
Автор

package oop;

public class CallByValue {

void change(int i) {
i = 10;
}
package oop;

public class CallByValueTest {

public static void main(String[] args) {
CallByValue ob = new CallByValue();
int x = 5;
System.out.println("x before call : " + x);
ob.change(x);
System.out.println("after call : " + x);

}
}

nishatsultana
Автор

void myMethod(int i){

i = 20; is this correct? if yes then what does it means. assigning a value to 10?
System.out.println(i);
}

mh_tareq
Автор

i er value to 20 deya ase age thekey sir. 10 to deya nai.

techfair
Автор

package oop;


public class CallByReference {
String name;
void change(CallByReference r2){
r2.name = "Troyee";

}
}

package oop;


public class CallByReferenceTest {
public static void main(String[] args) {
CallByReference r1 = new CallByReference();
r1.name = "Aditi";

System.out.println("Before Calling : "+r1.name);

r1.change(r1);
System.out.println("After Calling : "+r1.name);


}
}

tomabanik
Автор

package oop;


public class CallByValue {
void Change(int i){
i = 30;
}
}


package oop;



public class CallByValueTest {
public static void main(String[] args) {
CallByValue ob = new CallByValue();
int x = 20;

System.out.println("Before Calling : "+x);

ob.Change(x);
System.out.println("After Calling : "+x);
}
}

tomabanik