Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Annie Russell   on Apr 27 In Java Category.

  
Question Answered By: Mark R   on Apr 27

In the following statement we must understand  that we need to print current
value of a and then increment.
System.out.println("a++="+ a++);

In the following statement we must understand that we will increment  a before
printing it.
System.out.println("++a="+ ++a);

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on post vs pre increment implementation Or get search suggestion and latest updates.


Tagged: