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 |
Can a static member function access member variable of an object?
What is object-oriented programming?
What is method in java with example?
How to check if linked list contains loop in java?
What is math in java?
Difference between linkedlist and arraylist.
What does .equals do in java?
What is default specifier ??? Use of default specifier ???
In treeset we add same object ...what will be the out put
What is meant by collection in java?
This is my code i have a doubt class ab implements a,b { public void add() { System.out.println("Hi") } } interface a { public void add(); } interface b { public void add(); } in this code i have two interface implemented in the class has same method.just i want to know which method of interface implemented in the class. interface a or interface b? confused me .
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).