statement

int y=8;

in c++

what is the value of ++y and y++

and these result check in java

and give the answer why?