The C language contains data types as shown in the following:I. Data types and "molds"The six keywords short, int, long, char, float, double represent the six basic data types in C language.How to understand them? For example: Have you seen that
Basic data typesbyte =-128 and 127------------------------------------------------------------2 of 8 parties, 1 bytesShort =-32768 and 32767-------------------------------------------------------2 of 16 Parties, 2 bytesint = 2147483648 and 2147483647
First, we want to understand the meaning of "bit", "byte", "word" (word), these three.bit is the smallest unit of storage and can only be placed in a machine language of 0 or 1.Byte (byte), 8 bits (bit) is a byte, so 1 bytes = 8 bits, 4 bytes is 32
First, the characteristics of the basic data type, number of digits, maximum and minimum values.1.Basic type: Short bits number: 16Packing type: Java.lang.ShortMinimum value: short.min_value=-32768 (-2 of 15 this party)Maximum value: short.max_value=
First, analyze the characteristics of the basic data type, maximum and minimum values. 1, Basic type: int bits number: + Wrapper class: Java.lang.Integer Minimum: integer.min_value=-2147483648 (-2 of 31 Parties) Maximum value: integer.max_value=
There are four kinds of integer types in Java, which are byte short int long, where byte is only one byte 0 or 1, which is not explained in detail here.
The other three types are as follows:
1,Basic type: Short bits number: 16Packing class:
Short int 2-byte value range -32768~32767
Long integer 4 byte value range -2147483648~2147483647 float Precision 4 byte value range -3.4*10 (-38) ~3.4*10 (38)
Double Double-precision 8 byte value range -1.7*10 (-308) ~1.7*10 (308)
This problem
Turn from: http://blog.sina.com.cn/s/blog_6f62c9510101svjz.html
The following words selected from the "C Programming language":
The introduction of the short and long two qualifiers can provide us with the number of different lengths that meet the
Short int short integer two byte value range-32768 ~ 32767
The value range of four long integer bytes is-2147483648 ~ 2147483647 float single precision 4 byte value range-3.4*10 (-38 )~ 3.4*10 (38)
Double double 8-byte value range-1.7*10 (-308 )~ 1
The Java language is a static type (statical typed), which means that all variables and expression types are fully determined when they are recompiled. Because it is statical typed, the Java language is also strongly typed (strong typed). Strong
The Java language is a static type (statical typed), which means that all variables and expression types are fully determined when they are recompiled. Because it is statical typed, the Java language is also strongly typed (strong typed). Strong
The Java language is a static type (statical typed), which means that all variables and expression types are fully determined when they are recompiled. Because it is statical typed, the Java language is also strongly typed (strong typed). Strong
Summary of Basic java data types and summary of Data Types
Java data types can be divided into two categories: primitive types and reference types ). The following is the basic Java data type-related knowledge compiled by the java head. If you are
The Java language is a static type (statical typed), which means that all variables and expression types are fully determined when they are recompiled. Because it is statical typed, the Java language is also strongly typed (strong typed). Strong
Original URL: http://blog.csdn.net/bingduanlbd/article/details/27790287The Java language is a static type (statical typed), which means that all variables and expression types are fully determined when they are recompiled. Because it is statical
The following are the main validation notes and explanations:
Annotations
Applicable data types
Description
@AssertFalse
Boolean, Boolean
Verify that the element value of the annotation is false
The following are the main validation notes and explanations:
Annotations
Applicable data types
Description
@AssertFalse
Boolean, Boolean
Verify that the element value of the annotation is false
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.