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


Difference between prefix and postfix forms of the
++operator?

Answers were Sorted based on User's Feedback



Difference between prefix and postfix forms of the ++operator?..

Answer / ranganathkini

The prefix ++ operator first increments the value by one and
then returns the new value.

The postfix ++ operator first returns the value and then
increments it.

Is This Answer Correct ?    36 Yes 1 No

Difference between prefix and postfix forms of the ++operator?..

Answer / ravikiran

prefix will increment first and assigns to the variable
postfix will assing the value to the variable and then
increments

Is This Answer Correct ?    21 Yes 1 No

Difference between prefix and postfix forms of the ++operator?..

Answer / uday ray

They behave differently when they are used in expressions on
the right hand side of an assignment statement. A prefix
operator first adds 1 to the operand and the result is
assigned to the variable on left. On the other hand, a post
fix operator first assign the value to the variable on left
and then increments the operands.

Is This Answer Correct ?    5 Yes 2 No

Post New Answer

More Core Java Interview Questions

What are the drawbacks of reflection?

0 Answers  


Explain tree set and its features?

0 Answers  


what is mean by overriding in which situation we wil use?

5 Answers   Atlas Systems, CSC, DCPL,


Give an example of use of pointers in java class.

0 Answers  


What is the use of accept () method in java?

0 Answers  


What are the procedures?

0 Answers  


Can a variable be local and static at the same time?

0 Answers  


how you will prevent inheritance is there any other way other than inheritance?

4 Answers   Wipro,


explain the concept of inheritance with an example?

9 Answers   Polaris,


What is serialization in java?

0 Answers  


An inner class can actually be a subclass of the outer class? a. true b. false

2 Answers  


Is a class an object?

0 Answers  


Categories