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 number data type?

1039


What is the covariant return type?

1104


What are design patterns and please explain?

1094


What is the relationship between class and object?

1051


What is string and example?

1048


java Technical questions asked by JPMC

5094


What is the final class?

1067


How to perform quicksort in java?

1123


What is vector?

1071


What is the difference between an object-oriented programming language and object-based programming language?

1020


Difference between notify() method and notifyall() method in java?

978


What is method overriding in java ?

1199


What are the two categories of data types in the java programming language?

997


What is type parameter in java?

965


What is stack class in java?

1049