int a=1,b=10;
System.out.println(a+b--);

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between default and protected access specifiers?

512


What do you understand by soft reference?

593


Tell some latest versions in JAVA related areas?

566


What does next mean in java?

541


Can we make main() thread as daemon?

587






explain copyonwritearraylist and when do we use copyonwritearraylist?

554


When is finally block not called?

588


What is a type parameter in java?

542


How to display names of all components in a Container?

2499


What is binary tree in java?

542


How does class forname work in java?

491


How to store image in arraylist in java?

520


What is a numeric string?

572


What is a byte array?

595


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

529