CSS font stacks & developer FAQs with Web standards
Site navigation below

One of hundreds of answers available with our premium content service.

Part answer

A: Primitive data types are containers that hold references to fundamental numeric, logical, byte and character literal data and are built-in to the Java language and runtime system. They are called primitive because they have a relatively simple physical storage format and size. Primitives are not Java objects and objects cannot be cast to a type that could be stored in a primitive variable.

// incompatible types, does not compile
long l = new Object();
    

… full answer hidden

Click for full answers

Premium members click below for full answer
What's the difference between primitive types and arrays?

Home · Web fonts · Font stacks · FAQs · Java · CSS · Javascript · HTML · Site manager