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 default locale java?

1182


Will minecraft java be discontinued?

1231


Explain purpose of sleep() method in java?

1174


What is JFC?

1334


Can you have two constructors in java?

1050


What is static import?

1235


What is garbage collector?

1136


What is a hashmap used for?

1312


What is the difference between the direct buffer and non-direct buffer in java?

1084


What is the formula to calculate percentage?

1078


Explain the concept of hashtables?

1226


What is the difference between static and global variables and also define what are volatile variables?

1107


What is the difference between a static and a non-static inner class in java programming?

1145


What is a nested list?

1026


Does sprintf allocate memory?

1165