Tags: search articleTo learn index classifications and create indexes:1._ID Index The default index for most collections2. Single key index: Manually created, a single value3. Multi-built Index: composite function4. Composite index: The leftmost prefix principle5. Expired index: Expire within a certain time, note: must be isodate or its array, do not use timestamp, otherwise it will not be automatically deleted.6. Full-text index Db.tm.ensureindex ({"article": "Text"}), Db.tm.ensureindex ({"Key1
" + 3.4;
System.out.println ((A = = b)); result = True
Analysis: JVM for string constant "+" number connection, the program compile period, the JVM will be the constant string "+" connection optimization to the concatenated value, take "a" + 1, the compiler is optimized in class is already A1. The value of its string constants is determined at compile time, so the final result of the above program is true.
[2]
String a = "AB";
String BB = "B";
String
Some may ask questions like this. the expected result of the table's data in the following example is idaabb201734562506643898920.00002. of course, the environment is SQL Server's answer and analysis as follows: 1, many friends often ask questions similar to this,
The data in the table is as follows:
ID AA BB
1 123 456
1 4535 54
1 60 6564
1 60 656
2 50 664
2 60 6
3 89
4 40 4242
The expected result is:
ID AA BB
Directly cut the topic. There is A table in the table: ChenJiID, DanWeiID, Name, and ChenJi. The IDDanWeiIDNameChenJi ---------------------------- the consumer opens two connections in the query analyzer to connect A to begintrant.
There is a table in the direct cut topic: ChenJi ID, DanWeiID, Name, in the ChenJi table, record ID DanWeiID Name ChenJi --- ----------- --------- 1 1 aa 91 2 1 bb 91 3 1 cc 33 4 2 dd 164 5 2 ee 155 6 2 ff 166 in the query
This post was last edited by Zhoumengkang on 2013-09-12 10:03:14
Prior to the introduction of jquery
var str = "{' A ': ' B ', ' AA ': ' BB '}", var str2 = eval (' (' +str+ ') '), var type = typeof (STR2); Console.log (str); Console.log (type) ;//objectconsole.log (str2); $.post ('./bb.php ', {' Data ': str2});
Bb.php's Code
$data = $_post[' data '];var_dump ($data);
The console looks at the returned results, and the output is directly an array.
direction will lead to compilation errors. Final is not responsible for the changes to the objects it points.
Several examples of String constant pool problems
The following is a comparative analysis and understanding of several common examples:
String A ="A1";
String B =""+1;
System. Out. println (A = B ));// Result = true
String A ="Atrue";
String B =""+"True";
System. Out. println (A = B ));// Result = true
String A ="A3.4";
String B =""+3.4;
System.
the object initially pointed to. changing its direction will lead to compilation errors. Final is not responsible for the changes to the objects it points.
Several examples of String constant pool problems
The following is a comparative analysis and understanding of several common examples:
String A = "A1"; string B = "A" + 1; system. out. println (A = B); // result = true string a = "atrue"; string B = "A" + "true"; system. out. println (A = B); // result = true string a = "a3.4"; string B = "
pointer.Field-Symbols: type any,Type any.* ** This is a pointer to the table structure.Field-Symbols: Like rtab1,Like rtab2.* ** If there are two columns, use the data annotated below to play* Add_data '000000' 'aa' 1. 1 '.* Add_data '000000' 'bb ''' 2. 1 '.* Add_data '000000' 'cc''' 3. 1 '.* Add_data '000000' 'dd''' 4. 1 '.* Add_data '000000' 'A' 1. 2 '.* Add_data '000000' 'bb ''' 2. 2 '.* Add_data '00000
class = 0 limit 0,1);set @feature =(select parent from finalgini where statetemp=1 limit 0,1);if (@weather is null ) thenleave rr;else if(@feature is null) thenupdate finalgini set statetemp = state; end if;end if;if (@weather is not null) thenb:beginset current_gini = (select min(gini) from finalgini where statetemp=1);set current_class = (select parent from finalgini where gini = current_gini);drop table if exists aa;create temporary table aa (namee varchar(100));insert into aa select class f
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Script
>
//
Executes one or more statements for each attribute of an object, or each element in an array or set.
//
For ([Var] variable in {object | array | collection })
/*
Variable Required. A variable can be any attribute name of an object, any index of an array, or any element of a collection. */ Function Forindemo (){ // Create some variables. VaR A, key, S =
# Passwd aa# Useradd bb# Passwd bb
And change the owner and group of the directory.# Chown aa. aa/home/aa# Chown bb. bb/home/bb# Ls-l/homeTotal 24Drwx ------ 4 aa 4096 May 26 aaDrwx ------ 4 bb 4096 May 26
Several examples of String constant pool problemsThe following is a comparative analysis and understanding of several common examples: String a = "a1"; String B = "a" + 1; System. out. println (a = B); // result = true String a = "atrue"; String B = "a" + "true"; System. out. println (a = B); // result = true String a = "a3.4"; String B = "a" + 3.4; System. out. println (a = B); // result = true analysis: JVM connects the "+" Number of string constants to compile the program, the JVM optimizes t
String constant pool problems
The following is a comparative analysis and understanding of several common examples:[1]String A = "A1 ";String B = "A" + 1;System. Out. println (A = B); // result = trueString A = "atrue ";String B = "A" + "true ";System. Out. println (A = B); // result = trueString A = "a3.4 ";String B = "A" + 3.4;System. Out. println (A = B); // result = true
Analysis: JVM connects the "+" Number of string constants. During the program compilation period, the JVM optimizes the "
already A1. The value of its string constants is determined at compile time, so the final result of the above program is true.Example 4:Java codeString a = "AB";String BB = "B";String B = "a" + BB;System.out.println ((A = = b)); result = FalseAnalysis: JVM for string reference, because in the string "+" connection, there is a string reference exists, and the reference value in the program compilation perio
: String s0= "Kvill"; String S1=new string ("Kvill"); String S2=new string ("Kvill"); System.out.println (S0==S1); S1.intern (); S2=s2.intern (); The reference to "Kvill" in the constant pool is assigned to S2 System.out.println (S0==S1); System.out.println (S0==s1.intern ()); Output Result:FalseFalseTrueTrueA few examples of string constant pooling problems:"1"String a = "AB"; String
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.