Is it safe and considered as a good practice to use directly the following comparison operators with Double wrapper class in Java: > , < , <= and >= ?
I've tried and it seems to work, as the following code:
Double tiny = 1.2;
Double big = 125.65;
System.out.println(tiny > big);
System.out.println(tiny >= big);
System.out.println(tiny < big);
System.out.println(tiny <= big);
Produces this output:
false
false
true
true
Yet, as far as I know, Java does not support operator overloading and the official documention does not say a word about it, hence my question.