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 |
Write a java program to check if a number is prime or not?
Can private method static?
what is use of session tracking ?with example?
Is set ordered?
Can a class extend abstract class or interface? why
Why is a string immutable?
How does arraylist work in java?
How to create an instance of a class without using "new" operator? Plz help me out properly.Thank u.
Is delete, next, main, exit or null keyword in java?
What is the difference between final, finally and finalize() in java?
Why java applets are more useful for intranets as compared to internet?
What is the use of toarray () in java?