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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many arguments can a method have java?

516


What do you mean by an interface in java?

548


What are unchecked exceptions in java?

585


What are register variables what are the advantages?

431


What variables are stored in stack?

505






How do you create a method in java?

521


I want to print “hello” even before main is executed. How will you acheive that?

621


What is meant by memory leak?

522


Is static variable stored in heap?

485


What is main difference between variable and constant?

504


How do you remove all elements from an arraylist in java?

483


How can you read an integer value from the keyword when the application is runtime in java? example?

606


Explain the importance of join() method in thread class?

612


extending thread class or implementing runnable interface. Which is better? : Java thread

539


Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx

1579