Primitive datatypes in java
8 primitive types in java are int, char, byte, float, double, boolean, short and long. Everything in java is not an object. Primitive datatypes are included in java for performance reasons. For primitive types, we don’t use the new keyword. Using new will place the objects in heap, which would be very costly for small […]
Continue Reading