Actually, the java compiler accepts + - as + - therefore it leads to -1234. if you try - + - 1234, then it will be processed as - + * - 1234, which is 1234.
public class Main {
public static void main(String[] args) {
int j = -+ -1234;
System.out.printf("%d", j);
System.out.println();
System.out.println(j);
}}
This will print 1234. you cannot use ++ / - since it is already predefined in java for the increase and decrease operation