Sunday, January 31, 2016

PrePostIncrementExample2

package LearnJava;

public class PrePostIncrementExample2 {

/**
* @param args
*/
public static void main(String[] args) {
int i = 0;

int j = 0;

int k = j++;

int m = ++i;

System.out.println(k);
System.out.println(m);
System.out.println(j);

}

}

1 comment:

  1. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

    Core Java Training in Electronic city

    ReplyDelete