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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define canvas?

551


Explain public static void main(string args[]) in java.

518


Which browsers work with java?

547


Why put method is idempotent?

449


Explain about method local inner classes or local inner classes in java?

559






Why use string handling in Java?

569


What kind of variables a class can consist of?

622


Can a class have more than one object?

512


Write a program to print the pattern given below

483


Explain java heap space and garbage collection?

570


What is a finally block? Is there a case when finally will not execute?

536


Which programming language is most secure?

516


What happens if an exception is throws from an object's constructor?

619


What is java util collection?

542


How does system arraycopy work in java?

570