Java Wrapper classes are often slower than primitive classes.

While Primitive class only has values, the wrapper class stores information about the entire class. Since the classes often deal with object values, comparing them with primitive classes does not give the desired results.

Comments