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 the difference between jfc & wfc?

0 Answers  


What are the different types of inheritance in java?

0 Answers  


How is tree Mirroring implemented?

0 Answers   Fidelity,


In Serialization, whether you will use Static variables?

3 Answers   HCL,


Can you declare the main method as final?

0 Answers  






what is the use of thread?Justify it by project point of view

7 Answers  


How do listeners work?

0 Answers  


How can we find the actual size of an object on the heap?

0 Answers  


What is a dot notation?

0 Answers  


What is the java project architecture?

0 Answers   IBM,


What is pre increment and post increment in java?

0 Answers  


Which are thin and thicK wrapper Class's in Java?

1 Answers  


Categories