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 bean? Where it can be used?

0 Answers  


Explain about fail fast iterators in java?

0 Answers  


How would overload a function based on return type?

0 Answers   Genpact,


If circular link of two objects, then will it be garbage collected ?

3 Answers   TCS,


What do you mean by formatting?

0 Answers  


What does percent mean in java?

0 Answers  


What is the benefit of inner classes in java?

0 Answers  


What are other modifiers?

2 Answers   Wipro,


what is difference between prepare stetement and callable starement with example?

1 Answers   CMC,


What is mysql driver class name?

0 Answers  


In Java list the methods that can be overridden?

0 Answers   Accenture,


How many types of memory areas are allocated by jvm?

0 Answers  


Categories