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

What’s a deadlock?

1106


What is a class in java?

1016


What is the lifetime and scope of a variable?

1022


What is method overriding in java ?

1199


How can we run a java program without making any object?

1052


When do we use synchronized blocks and advantages of using synchronized blocks?

1232


Which is the best approach for creating thread ?

1217


What is the difference between class & structure?

1237


How many bytes is a string java?

1031


I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

986


Is string thread safe in java?

1096


What is the use of protected in java?

1028


What are the drawbacks for singleton class?

1029


How to obtain a performance profile of java program

1038


What are extraneous variables examples?

1106