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

Why do we use string?

988


Explain the Propertie sof class?

1015


What is return type in java?

1025


How to create a fecelet view?

961


Explain differences between collection api and stream api?

1111


How do you sort in ascending order in java?

833


How thread scheduler schedule the task?

1020


What is a method in programming?

1149


Is math class static in java?

1070


What is difference between == and === in js?

975


What is boolean false?

941


What is the technique adopted to create an immutable class?

1068


How is the marker interface used in Java?

1057


Can a class extend more than one class?

1076


What is the default size of load factor in hashing based collection?

1009