Why are primitives not objects?

Since the primitive data types consume less memory and can be accessed faster , they are not objects. The equivalent Wrapper classes are also available in java like “Integer” “Short” etc. They can be used as objects if you want. However, the wrapper classes will be stored in Heap and they are slow.17 Mar 2012

Sizin İçin Seçtik  Mal değneği ne demek?

Leave a Reply

Your email address will not be published. Required fields are marked *