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 nested top-level class?

815


Can we overload the main() method?

801


Explain different ways of creating a thread. Which one would you prefer and why?

825


What is an object’s lock and which object’s have locks?

730


What is set string?

819


How to add menushortcut to menu item?

770


Write a program to reverse a number in java?

826


What does this () mean in constructor chaining concept?

850


What is a variable and constant?

795


Explain try and catch keywords in java?

931


What all access modifiers are allowed for top class ?

971


What is the ==?

702


How can we create a synchronized collection from given collection?

877


what is difference between equals and ==?

835


What is binary tree in java?

804