Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

int a=10,b=20,c=30 a= b+c;b=a+c;c=a+b;
System.out.println("The value is"+a+b+c;

Answer Posted / manikandan

int a=10,b=20,c=30;
a= b+c;b=a+c;c=a+b;
System.out.println("The value is"+a+b+c);

First a=10; b=20;c=30;

a=b+c; ---> (ie) a=20+30 , a=50

b=a+c ---->(ie) b= 50+30 , b=80

c=a+b -----> (ie) c= 50+80 , c=130

then in final statement it should print a+b+c , it considers
all 3 has string so , "50"+"80"+"130" (i.e.) "5080130"

therefore answers is , 5080130

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bifunction in java?

1274


How do you escape sequences in java?

1114


What are exception handling keywords in java?

1101


What is a substitution variable?

1080


Is list ordered in java?

1028


What is the purpose of using java.lang.class class?

1060


Can we create an object of static class in java?

1061


How does multithreading take place on a computer with a single cpu in java programming?

1061


Can an arraylist be empty?

1106


What is OOP Language?

1125


What is the purpose of garbage collection in java?

1142


What is meant by local variable and instance variable?

1055


What is string value?

1235


What restrictions are placed on method overriding in java programming?

1057


What is an off by one error in java?

1001