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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a protected method?

598


Why is string builder not thread safe?

595


What are the drawbacks of reflection?

567


What is the difference between double and float variables in java?

638


Explain the Propertie sof class?

591






Which is dependent variable?

498


What is http client in java?

523


How does remove work in java?

526


What does s mean in regex?

555


Why is boolean important?

595


How do I write a self declaration?

557


State the difference between strings and arrays.

603


What are the files generated after using IDL to java compiler?

593


Why do we use return statement?

545


What is the final class modifier?

565