answersLogoWhite

0


Best Answer

A data type is, well, the type of data. The most common types are strings (text with spaces, punctuation, etc), integers (whole numbers within a certain range, depending on the specific type), and decimal numbers (1.7). Depending on the database software, there will be many other types.

User Avatar

Wiki User

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

Wiki User

14y ago

The data type for an object is simply its class. Classes allow you to create new data types. For example, Java has built-in (or primitive) data types for integers and floating-point numbers, among others; but it has no built-in (primitive) data type for dates. So, through a class, you create a new type of data, for dates. Actually, those already come with the Java classes, so it is more likely that you will use that, instead of programming your own - except for some quick practice.

Anyway, in the Date class, or perhaps better in the Calendar class, there are definitions what data should be stored for a date should have (a year, a month, and a date), and - through its methods - what operations should be allowed on a date; for example, add a certain number of days to an existing date. All this defines a new data type, for dates.

Similarly, you can define classes (or use classes defined by somebody else) for complex numbers; points in a 2-dimensional plane or in a 3-dimensional space; fonts; etc., and all kinds of "things" that are referenced in a business, and that must somehow be programmed - for example, "client", "product", or "invoice". When you define a class for each of these, you are basically creating a new data type.

This answer is:
User Avatar

User Avatar

Wiki User

7y ago

In computer programming, a data type determines how a binary representation should be interpreted. For example, the binary value 10110100 has the decimal value 180, however if the data type were a signed type then its value would be -76. The symbolic representation (the binary value) doesn't change, but the interpretation of the symbol changes according to whichever data type is associated with the representation.

The data type also specifies the type's length (in bytes) and which operations are applicable to the type. For instance, we can perform arithmetic upon all numeric types, but it doesn't make sense to perform arithmetic operations upon a piece of text or other non-numeric data type.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

A data type in a programming language is a set of data with values having predefined characteristics. Examples :- floating point unit number

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a definition of data types?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Which of the two types of Data Independence Types is harder to achieve?

The ability to modify a scheme definition in one level without affecting a scheme definition in next higher level is called data independence there are two types of data independence physical data independence:- refers to the ability to modify the scheme followed at the physical level without affecting the scheme followed at logical level logical data independence:- refers to the ability to modify the conceptual scheme without affecting the schemes followed at view level logical independence is difficult to achieve


Is built-in data-type are abstract data-types in java?

All built-in data types are not abstract data types.


What is datatype.Define various types of data types?

In c language data types are used to specify the tye of data.for ex:int a;It means "a" is a variable of type integer.There are two types of data types in c.They areprimary data typessecondary data typesprimary data types are the built in data types and secondary data types are the user defined data types.eg for primary data types are int,float,char,long,double..and for secondary are arrays,structures,pointers,unions..


What are the subject-matters of data structure?

types of data structure types of data structure


What type is data?

There Are Two main types of data. Qualitative data are expressed As numbers, obtained by counting or measuring. Another type of data is called an inference.An inference is a logical interpretation based on prior knowledge or experience.

Related questions

What is data definition language?

There are four types of commands in Structured query language. One of the four type of command includes data definition language. Data definition language includes create , delete , drop command .


What is the definition of ordered data?

Ordered data is pretty simple. It is data which is measured (or found from a test) in ordinal types of measurement. E.G. 1 cat, 2 cats, 3 cats etc.


What are the two types of definition?

the two types of definition are the formal and informal definition.


What is the definition of data table?

data cable is an instrument like wire which is used to transfer data or other information from one place to another, one computer to another, the example of this types is LAN,WAN,MAN


Which of the two types of Data Independence Types is harder to achieve?

The ability to modify a scheme definition in one level without affecting a scheme definition in next higher level is called data independence there are two types of data independence physical data independence:- refers to the ability to modify the scheme followed at the physical level without affecting the scheme followed at logical level logical data independence:- refers to the ability to modify the conceptual scheme without affecting the schemes followed at view level logical independence is difficult to achieve


Is built-in data-type are abstract data-types in java?

All built-in data types are not abstract data types.


What is the definition of interpreting data?

getting data


What is definition of ungrouped data?

Single data


What is the definition of data resource?

stored data.


What is datatype.Define various types of data types?

In c language data types are used to specify the tye of data.for ex:int a;It means "a" is a variable of type integer.There are two types of data types in c.They areprimary data typessecondary data typesprimary data types are the built in data types and secondary data types are the user defined data types.eg for primary data types are int,float,char,long,double..and for secondary are arrays,structures,pointers,unions..


What is sql statements?

SQL in database is short for structured query language. There are four types of SQL statements which are as follows : 1) Data retrieval language 2) Data manipulation language 3) Data control language 4) Data definition language


What is the definition of database?

A data base is a collection of data.