Since the primitive double is represented with the java.lang.Double class, shouldn't double.class equal java.lang.Double.class? (This of course also happens on other primitive types too)
System.out.println(double.class == Double.class);
Output:
Result: false
java.lang.Double
wraps/boxes adouble
, but it’s not the same. – ThermoscopeList<double>
, but you can define aList<Double>
. – Thermoscopedouble
is not aDouble
.) – Rolland