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

Answers were Sorted based on User's Feedback



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

Answer / nagesh

answer is 110 because a+b print a+ and then +b so ans is 110 if u are print 11 the use (a+b)+ so the addition is performed

Is This Answer Correct ?    2 Yes 5 No

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

Answer / anju

1 10

Is This Answer Correct ?    3 Yes 17 No

Post New Answer

More Core Java Interview Questions

what is difference between String buffer and String builder?

5 Answers   Benchmark,


Can vector have duplicates in java?

0 Answers  


When do we use synchronized methods in java?

0 Answers  


Why arraylist is used in java?

0 Answers  


How many threads can java run?

0 Answers  






What does those terms actually mean included in the j.d.k i.6?

0 Answers  


Can interface be private in java?

0 Answers  


how can u handle run time exception in java? explain with brief explanation with examples?

2 Answers   CTS,


Can you have a constructor in abstract class?

18 Answers   HCL,


When object is created and destroyed?

0 Answers  


What is 32 bit float?

0 Answers  


When should I use stringbuffer?

0 Answers  


Categories