Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are primitive data types in java?

Data Java Primitive types
0
Posted

What are primitive data types in java?

0

All datatypes in small letters (int, byte, char…) are primitive datatypes which means that they are not objects (Integer, Byte…). Objects use more resources but offer a set of methods to manipulate them. In order to reduce the resources, primitive datatypes were introduced to Java. This step was one that made Java less object oriented. In a fully object oriented language, EVERYTHING is an object ,even variables and even if that means to produce a lot of overhead. Fortunately, each primitive Java datatype has its object representation. So you as a programmer can decide whether you want to save resources (use primitives) or go object oriented (use object wrappers).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123