public class Test {
public static void main(String args[]) {
byte a = 1;
byte b = ++a;
byte c = -a;
System.out.print(a);
System.out.print(b);
System.out.print(c);
}
}
So minus in front of a variable implicitly converts it to an int?
2023 Feb 19, 11:23:29 AM
Login in to like
Login in to comment