This Question is Answered 

    anon

    What Are Primitive Data Types In Java ?

    asked 2 years ago

    Can't find what you're looking for?

    Ask a Question, Get an Answer ASAP


    Date | Rating

    Answers


    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).

    answered 2 years ago   

    New Comment

    1000 words left


      What is Blurtit ?

      Ask questions on any topic, get great answers from real people for FREE. Blurtit has hundreds of thousand of members so your sure to get the answer your looking for.

      Ask a Question.