Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / mamitha

Ans.11 b'coz based on operator precedence rule, -- ll works first and we get 10 for b (post decrement) and it ll add with 1 .

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is http client in java?

1087


How do you use compareto method?

1017


What is a nested list?

965


What is difference between fail-fast and fail-safe?

1233


What are predefined functions?

1131


What is string buffer?

939


when should you use stringbuilder class in a program?

979


Is array size fixed in java?

975


What differences exist between iterator and listiterator?

1041


What is canonical name in java?

1139


What is an example of a conditional statement?

1052


Why string is immutable with example?

971


Why are functions called methods in java?

1000


How do you achieve singleton?

975


Explain importance of throws keyword in java?

980