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--);

Answers were Sorted based on User's Feedback



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

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

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

Answer / anju

1 10

Is This Answer Correct ?    3 Yes 17 No

Post New Answer

More Core Java Interview Questions

Every class extends object but why it is not possible for every object to invoke clone() method. ideally protected methods should be accessible from sub classes. isn't it?

2 Answers  


what is life cycle of applet?

9 Answers  


How will you create the class for the following scenario? Employees under one employee?

2 Answers   Bally Technologies,


When abstract methods are used?

1 Answers  


How would overload a function based on return type?

0 Answers   Genpact,


difference between java ,c#&java,c++

3 Answers  


What is proper subset?

0 Answers  


What does it mean to flush a file?

0 Answers  


What is passing by reference in java?

0 Answers  


Why are functions called methods in java?

0 Answers  


What is a Java switch statement, and how can it be used?

2 Answers  


Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.

2 Answers   iGate, Seed Infotech,


Categories