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

Answer Posted / shahsidhar

11

because b-- having post decrement operator that means
decrement operation will be done in the next statement i.e
after a+b-- statement execution.

Is This Answer Correct ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by the value of a variable?

457


Why is java so important?

645


What is nextline method in java?

555


Is final static java?

545


What is the difference between interface & abstract class?

557






Which java ide is used the most?

505


what is recursion in java

596


what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread

484


Why Java doesn’t support multiple inheritance?

631


What is the most important feature of java? What is an interface?

514


Can we sort set in java?

538


there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.

1571


Why parameters should be passed by reference?

498


What does \ mean in regex?

619


What is multiple inheritance? Is it supported by java?

526