Skip to content

Instantly share code, notes, and snippets.

@coolsasindu
Last active March 15, 2021 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coolsasindu/1929777567f1d5e7f9a18a08d1269020 to your computer and use it in GitHub Desktop.
Save coolsasindu/1929777567f1d5e7f9a18a08d1269020 to your computer and use it in GitHub Desktop.
class Postfix {
public static void main(String args[]){
int i = 5 ;
System.out.println(i++); // Output is 6 but its incresed after print
System.out.println(i--); // Output is 4 but its Decrement after print
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment