You can put whatever you want in the house--if you have enough aesthetic attainments, you can even get a room to try--of course, for the convenience of management, we'll take a repeat name for everything that's stored in the house, like the names of
1, short S1 = 1; S1 = s1 + 1; Is it wrong? short S1 = 1; S1 = 1; Is it wrong?
Answer: S1 = s1+1; Will prompt "cannot convert from int to short", 1 is itself an int type, and S1 is a short integer, so they are the int type, and for the expression to
Data type
Size
Range
Default value
Byte (bytes)
8
-128-127
0
Shot (short integral type)
16
-32768-32768
0
int (integral type)
32
-2147483648-2147483648
0
IntroducedThis article is mainly about creating objects in the next chapter of the pattern, using a variety of techniques can greatly avoid errors or can write very concise code.
Mode 6: Functional grammar sugarfunction syntax sugar is an extension
Java character type char occupies 2 direct because he is Unicode encoded
Java simple data type
Simple type size range/precision
float 4 byte 32-bit IEEE 754 single precision
double 8 byte 64-bit IEE E 754 Double byte
1 byte-128 to 127 short
2
What does this article bring to you about PHP data types? PHP Data Type Summary, there is a certain reference value, the need for friends can refer to, I hope to help you.
First, data type introduction
1, PHP is a weak type check language, the data
BOOL is the Longbool type.Delphi defines four types of Booleans: Boolean,bytebool,wordbool and Longbool. The following three types of Booleans are introduced for compatibility with other languages, and the Boolean type is generally recommended.The
SQL optimization1. Avoid using in and not in,or,having in the WHERE statementexist, not exist instead of in, no in2. Cannot declare a number in character format, to declare character values in numeric format, otherwise invalidates the index,
1:java data type and MySQL data type comparison table
Type name
Display length
Database type
Java type
JDBC Type index (int)
VARCHAR
L+n
VARCHAR
Java.lang.String
12
MongoDB is a database based on distributed file storage. Written by the C + + language. Designed to provide scalable, high-performance data storage solutions for Web applications. MongoDB is a product between a relational database and a
Type name display length Database Type JAVA type JDBC Type Index (int) Description VARCHARLNVARCHARjava. lang. String12CHARNCHARjava. lang. String1BLOBLNBLOBjava. lang. byte []-4TEXT65535VARCHARjava. lang.
JavaScript reinforcement tutorial-Introduction to object Creation Mode
This article mainly introduces the next article on Object creation mode. using various techniques, you can greatly avoid errors or write very simple code.
Mode: function syntax
List of Java basic data types
Native Type
number of occupying positions
is there a sign bit
Minimum Value
Maximum Value
Default Value
Packing class
Notes
Boolean
1
No
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.