int a=1,b=10;
System.out.println(a+b--);
Answers were Sorted based on User's Feedback
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 |
what is difference between String buffer and String builder?
Can vector have duplicates in java?
When do we use synchronized methods in java?
Why arraylist is used in java?
How many threads can java run?
What does those terms actually mean included in the j.d.k i.6?
Can interface be private in java?
how can u handle run time exception in java? explain with brief explanation with examples?
Can you have a constructor in abstract class?
When object is created and destroyed?
What is 32 bit float?
When should I use stringbuffer?