#24 Learn about Return Keyword in Java | In Tamil | Java Tutorial Series | Error Makes Clever

preview_player
Показать описание
Welcome back to our Java tutorial series! In this exciting episode, we're into the fascinating world of the 'return' keyword in Java. The 'return' keyword allows us to send back a value from a method to the calling code, unlocking a whole new level of functionality and flexibility in our programs. Join us as we explore how to use the 'return' keyword to pass data back to the caller, handle different types of return values, and understand its role in method execution flow. Whether you're just starting your Java journey or looking to deepen your understanding of fundamental concepts, this video is packed with examples and explanations to guide you every step of the way. Get ready to harness the power of the 'return' keyword and take your Java skills to new heights!

Java in Tamil.

Join our 700K+ Instagram community
Рекомендации по теме
Комментарии
Автор

Vera level la irukku pro unga teaching method

karthikkeyan
Автор

if you want to store the output of a function in a variable, you can use the return keyword. Instead of storing it, if you're going to print it, you needn't use the return keyword.

jayaprakashs
Автор

I wonder how easily i understand the concept through these examples

lochana
Автор

Very use full started learning from scrach

arharider
Автор

int sum(int j, int k){

int rem = j+k;
return rem;

}



public static void main(String[] args) {

Retirn_type save = new Retirn_type();

int reminder = save.sum(23, 30);
System.out.println(reminder);

KumaresanDurairaj-rz
Автор

Guys phone number int use pana kudathu long use pananum

tn_wolf_
Автор

Frist like frist comment bro so, wating for your all videos

MMeditz-
Автор

Super bro!!! Most confusing keyword explained well

m_selvam-
Автор

public class hello{

int sum(int a, int b){
int total = a+b;
return total;
}
public static void main (String args[]){
hello obj = new hello();
int addition = obj.sum(5, 10);



}
}

nishapanneer
Автор

public class Common {
int getsoap(int money)
{
int soapprice = 10;
int rem = money - 10;
return rem;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
Common obj1 = new Common();
int remainder = obj1.getsoap(100);


}

}

ASHVLOG
Автор

Hi anna .. phone no ku entha data type use pannanum

heartleen
Автор

you should have said the reserved keywords i forgot about it and created a class return and thinking what did i do wrong

Pikachu-ik
Автор

public class Return {
int sum(int a, int b){
return a+b;
}

String getname(String name){
return name;
}

public static void main(String[] args){
Return obj = new Return();
int result =obj.sum(2, 3);
System.out.println(result);

String myname =obj.getname("Guruseelan");
System.out.println(myname);
}
}

guruseelan
Автор

eppadi bro program le red line podureenga

kannakannan
Автор

package functions;

public class test4 {

int sum(int num1, int num2){
int num3 = num1 + num2;
return num3;
}

public static void main(String[] args) {
test4 obj1 = new test4();
int sum = obj1.sum(10, 30);
System.out.println(sum);
}
}

arunraj
Автор

i code like this


public class lack {

int sum(int money){
return money;

}
public static void main(String[] args) {

lack obj1 =new lack();
lack obj2 =new lack();
int remainder1 =obj1.sum(15);
int remainder2 = obj2.sum(10);



}
}

anishdephentcse
Автор

import java.util.Scanner;

class Addfun {

void add(int a, int b){

System.out.println("the sum of value is : " +(a+b));

}

void Sub(int a, int b){

System.out.println("the subtracted of value is : " +(a-b));

}void Multi(int a, int b){

System.out.println("the multiple of value is : " +(a*b));

}void divid(int a, int b){

System.out.println("the divid of value is : " +(a/b));

}







public static void main(String [] args){

Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
Addfun num = new Addfun();
num.add(a, b);
num.Sub(a, b);
num.Multi(a, b);
num.divid(a, b);
}



}

ParthibanN-kr
Автор

public class garden {

String getName(String a){
return "Alwin";
}
public static void main(String[] args) {
garden now = new garden();
String wow = now.getName("vimal");
System.out.println(wow);
}
}
Alwin

alwinvimaljames
Автор

package youtube;

public class Adress {

String getaddress()
{
return "Kanyakumari";
}

public static void main(String[] args) {

Adress obj=new Adress();
String ad= obj.getaddress();


}

}

Jenifer-bl
Автор

public class yuvi
{
String getname(String a)
{
return a;
}
String getphone(String b)
{
return b;
}
public static void main(String[] args)
{
yuvi obj = new yuvi();
String a = obj.getname("giri");
String b = obj.getphone("vivo");
System.out.println(a);
System.out.println(b);
}
}

giridharan-if
visit shbcf.ru