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

What is immutability in java?

827


How do you find the absolute value?

808


What is composition in java?

959


How to find the given number is a prime number or not by getting input from the user

787


How to sort array of 0 and 1 in java?

746


What does the “static” keyword mean?

828


What is the static method?

762


What is the declaration statement?

726


Are strings immutable in java?

746


How can you add and remove nodes in jtree?

820


What is a short in java?

709


What is a loop java?

816


What is the difference between the ">>" and " >>>" operators in java?

738


What are the parts of a method?

764


What is string [] java?

740