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;

Answers were Sorted based on User's Feedback



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 / manju

(I tried this pgm)
It will give compilation error(like insert ') ' )
if u insert that bracket and then run ,the answer will be
102030.(bcz its treated only as strings)

Is This Answer Correct ?    1 Yes 2 No

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 / selvan

it gives two error one is (; expected error ) second is ()
expected error).

Is This Answer Correct ?    0 Yes 1 No

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 / ravikiran

260

Is This Answer Correct ?    0 Yes 1 No

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 / suresh

this program is error.

Is This Answer Correct ?    4 Yes 8 No

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 / suresh

50
40
30

Is This Answer Correct ?    3 Yes 8 No

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 / suresh

130

Is This Answer Correct ?    1 Yes 6 No

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 / suresh

120

Is This Answer Correct ?    1 Yes 9 No

Post New Answer

More Core Java Interview Questions

How many java versions are there?

0 Answers  


Is node a data type in java?

0 Answers  


What do you mean by constructor?

0 Answers  


int a=1,b=10; System.out.println(a+b--);

12 Answers   HCL,


Is java platform independent?

0 Answers  


Explain a situation where finally block will not be executed?

0 Answers  


Can a final variable be null?

0 Answers  


What causes memory leak in java?

0 Answers  


What about instanceof operator in java?

0 Answers  


how to use finalize()Method to resources

4 Answers   TCS,


What is stack explain?

0 Answers  


how many types of Inheritance?

0 Answers   Impetus,


Categories