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

what is the purpose of the runtime class?

0 Answers  


What is another word for methodology?

0 Answers  


What is immutable in java?

0 Answers  


Can we use switch statement with strings?

0 Answers  


How do you ensure that n threads can access n resources without deadlock?

0 Answers  






Garbage collection in java?

0 Answers  


What is sortedset in java?

0 Answers  


How to eliminate duplicates from an array?

6 Answers   ABC, AdMod, Adobe, College School Exams Tests, Patni, Wipro,


What is exception propagation?

0 Answers  


What is the best way to findout the time/memory consuming process?

0 Answers  


What is data object example?

0 Answers  


What is the difference between iterator and enumeration ?

0 Answers  


Categories