Increment/ Decrement Operator

Increment/ Decrement Operator

Increment operator or decrement operator basically suing the two operators this is called : 
  1. Prefix (-- or ++)
  2. Post fix(-- or ++)

The post fix use run before the value used in the expression .and prefix uses run after the value is used in the expression.In any expresseion both operands are fully evaluated before the oprator is applied.varaile marked final cannot be incremented or decremented.

Date:2026-03-09 00:00:00

Post Your Answers

User Email:

User Name:

Related scjp1.5 GEN Links

scjp1.5 GEN interview questions and answers for experienced and fresher