answersLogoWhite

0


Best Answer

A primitive variable can be one of eight types: char, boolean, byte, short, int, long, double, or float. Once a primitive has been declared, its primitive type can never change, although in most cases its value can change. they are used to store values like name, age, salary etc.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

When people say "primitive data types" they mean that the types cannot be divided even in simpler data types. For instance, type int describes all integer numbers and there is no mathematical point to split it in positive and negative. If you want to do so you need to use signed unsigned types and so on.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

A primitive data type is a simple type predefined by the language. They include integer, floating point, character, and boolean types. Some languages consider strings to be primitive (Java does not). Objects are never considered primitive.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

A primitive variable can be one of eight types: char, boolean, byte, short, int, long, double, or float. Once a primitive has been declared, its primitive type can never change, although in most cases its value can change.

We should remember that each of the primitive datatype has a particular range and by assigning values that are bigger than the size it can take would result in errors or loss of value and precision

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

POD (Plain old data) is what types are included by the language. That means, no structs. Examples:

int

float

double

char

And so forth.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago
  1. boolean types - true or false
  2. integer numeric types - 1, 2, 3, 4 ...
  3. floating point numeric types - 1.0, 1.1, 1.264, 65.03236 ...
This answer is:
User Avatar

User Avatar

Wiki User

13y ago

variables

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

variables.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Define and give three examples of primitive data types?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Variables as object in java?

There are two main categories of variables in Java. They are primitive and non primitive. Primitive data types are the basic data types like int, float, char etc. These are not objects. The other non primitive data types are all types of Java Objects. Example: String, ArrayList etc.


What are primitive variables?

Primitive variables are variables that are not objects and carry primitive values like numbers, boolean etc. The primitive data types in java are:intbytefloatcharlongbooleanshortdouble


What are the Difference between primitive data types and wrapper classes?

A primitive type is, in a way, built-in, in the language. This often includes different kinds of numbers, strings, and in some languages, dates and boolean. The other data type, other than primitive, is a compound, or user-defined, data type. For example, some languages allow the programmer to define compound data types, called a "struct" in C, or a "record" in Pascal, where the programmer can define (for example) a data of type point, consisting of x, y, and z coordinates. In object-oriented languages, these user-defined types are often defined as classes.A primitive type is, in a way, built-in, in the language. This often includes different kinds of numbers, strings, and in some languages, dates and boolean. The other data type, other than primitive, is a compound, or user-defined, data type. For example, some languages allow the programmer to define compound data types, called a "struct" in C, or a "record" in Pascal, where the programmer can define (for example) a data of type point, consisting of x, y, and z coordinates. In object-oriented languages, these user-defined types are often defined as classes.A primitive type is, in a way, built-in, in the language. This often includes different kinds of numbers, strings, and in some languages, dates and boolean. The other data type, other than primitive, is a compound, or user-defined, data type. For example, some languages allow the programmer to define compound data types, called a "struct" in C, or a "record" in Pascal, where the programmer can define (for example) a data of type point, consisting of x, y, and z coordinates. In object-oriented languages, these user-defined types are often defined as classes.A primitive type is, in a way, built-in, in the language. This often includes different kinds of numbers, strings, and in some languages, dates and boolean. The other data type, other than primitive, is a compound, or user-defined, data type. For example, some languages allow the programmer to define compound data types, called a "struct" in C, or a "record" in Pascal, where the programmer can define (for example) a data of type point, consisting of x, y, and z coordinates. In object-oriented languages, these user-defined types are often defined as classes.


Do the primitive datatypes in java have objects?

No Primitive data types do not have objects. As of Java 1.5, all primitive types in Java have "wrapper" classes. These classes serve two purposes: # They keep all type-specific methods together in one place. # They allow primitive types to be used in situations which take advantage of generics (also introduced in Java 1.5).


Data types in c primitive and non primitive?

Primitive types are the data types provided by a programming language as basic building blocks. Primitive types are also known as built-in types or basic types. Depending on the language and its implementation, primitive types may or may not have a one-to-one correspondence with objects in the computer's memory. However, one usually expects operations on primitive types to be the fastest language constructs there are. Integer addition, for example, can be performed as a single machine instruction

Related questions

Identify and define three types of trade barriers?

The 3 types are ........... and ..... does ........, ......... does ........ and finally ........... does ............


What are three types of primates?

They are New World monkeys, Old World monkeys and apes, and prosimians, the most primitive primates


What are the Three examples of types of technology?

a computer, a projector and a monitor


What are diamond graphite and buckyball examples of?

The three types of carbon.


Three types of polysaccharides?

Examples: starch, cellulose, glycogen.


What are examples of the three types of friction?

Push, pull and skid.


What are three trends that may be viewed as examples of emerging technologies?

there are three types of technologies


Variables as object in java?

There are two main categories of variables in Java. They are primitive and non primitive. Primitive data types are the basic data types like int, float, char etc. These are not objects. The other non primitive data types are all types of Java Objects. Example: String, ArrayList etc.


Three examples or types of card catalog?

Ewan ko sau


What are some examples of the three types of friction?

Push, pull and skid.


What are 3 examples of international tourist?

three types of international tourist


What are primitive variables?

Primitive variables are variables that are not objects and carry primitive values like numbers, boolean etc. The primitive data types in java are:intbytefloatcharlongbooleanshortdouble