Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - The difference between System.out.print and System.out.println
The difference between System.out.print and System.out.println
The difference between System.out.print and System.out.println is that the front line does not wrap, and the back line will wrap at last.

The return type of the conditional expression should depend on the second and third types:

(1) If the second and third data are of the same type, the type is returned.

(2) If one type is byte, short or char, and the other is an int constant (note that it is a constant), and this constant can be expressed by the previous type, it should be one of the previous three types, depending on which one it is. .

(3) If (1)(2) is not satisfied, the types of the second and third data are automatically compared to realize downward conversion, that is, small types are converted into large types, low precision is converted into high precision, and finally large types or high precision types are returned.

I hope it helps you.