#24 Learn about Return Keyword in Java | In Tamil | Java Tutorial Series | Error Makes Clever
HTML-код
- Опубликовано: 8 сен 2024
- 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
www.instagram....
Vera level la irukku pro unga teaching method
Bro vera level..... understand ❤❤❤❤
Well explaination broo❤
Thanks!!
Bro sql full course podunga bro
WAY OF TEACHING IS GOOD BRooo!
Thankyou
@@ErrorMakesClever awesome man, god gifted you great knowledge thank him
💙
Frist like frist comment bro so, wating for your all videos
public class Return{
String getAddress(){
return "1/143, Haji nagar 2nd Street,Kallikkuppam,Ambatur,Chennai-53";
}
public static void main(String[] args){
Return ret=new Return();
String s=ret.getAddress();
System.out.println(s);
}
}
package youtube;
public class Adress {
String getaddress()
{
return "Kanyakumari";
}
public static void main(String[] args) {
Adress obj=new Adress();
String ad= obj.getaddress();
System.out.println("Address:"+ad);
}
}
eppadi bro program le red line podureenga
package MJ;
import java.util.Scanner;
public class returnwithstring {
static String Name(String a){
String c=a;
return c;
}
static String Address(String a) {
String c=a;
return c;
}
static int Phone(int a) {
int c=a;
return c;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc=new Scanner(System.in);
System.out.println("enter the name: ");
String x=sc.nextLine();
System.out.println("enter the address: ");
String y=sc.nextLine();
System.out.println("enter the Phone NO: ");
int z=sc.nextInt();
String name=Name(x);
String add=Address(y);
int phn=Phone(z);
System.out.println(name);
System.out.println(add);
System.out.println(phn);
sc.close();
}
}
class hi
{
void div(int num1,int num2)
{
System.out.println(num1/num2);
}
void multi(int num1,int num2)
{
System.out.println(num1*num2);
}
void sub(int num1,int num2)
{
System.out.println(num1-num2);
}
public static void main(String[] args)
{
hi nal=new hi();
nal.div(12,3);
nal.multi(45, 2);
nal.sub(69, 35);
}
}
// Online Java Compiler
// Use this editor to write, compile and run your Java code online
public class hello {
int sum (int a ,int b){
int c = a*b;
return c;
}
public static void main(String[] args) {
hello multi = new hello();
int d = multi.sum(10,5);
System.out.println(d);
}
}
public class prog1{
String getname()
{
return "Raj";
}
String getphone()
{
return "I am a iphone user";
}
String getaddress()
{
return "I am from Chennai";
}
public static void main(String args[])
{
prog1 pro = new prog1();
String My_Name = pro.getname();
System.out.println("The Name which Retun Is :");
System.out.println(My_Name);
String My_phone = pro.getphone();
System.out.println("The Phone Which Return is :");
System.out.println(My_phone);
String My_Address = pro.getaddress();
System.out.println("The Address Which Return is :");
System.out.println(My_Address);
}
}
Bro Sql full course podunga
aldready potrukaru bro
@@smartandrew2362 Thank you bro