topics

全部话题 - 话题: tij
1 2 末页 (共2页)
f*****n
发帖数: 2126
1
我难以相信你说的话。无知并不是最可怕的,最可怕的是无知加固执。TIJ那里早就修
了个墨西哥入境大厅。你打开谷歌map看一下也知道的。
b*******p
发帖数: 44
2
来自主题: Java版 - TIJ上写错了?
一直认为java中String对象如果用new来创建,即使内容一样(identical character
sequ
ences),也还是不同对象,当然在内存中不同地方。
只有用quoted character string(字符串常量?)初始化时,如果内容一样,就会指
向之
前创建过的String对象,而不是新建一个。如: String a="a"; String b="a";那此时
a,
b两个reference都是指向同一个对象。记得有人写过java编译会把这些字符串常量放进一
个pool里,每次加入新的时候都保证不重复创建同样内容的对象。
但前两天看TIJ 3rd上,p540说"if a program has several String objects that
conta
in identical character sequences, then those String objects ALL MAP to the
sam
e memory.这里没有区别String对象怎样创建。紧接着后面提到So it makes sense
that
the hashCOde()
b*******p
发帖数: 44
3
来自主题: Java版 - TIJ上写错了?
那是TIJ上那句话我理解错了?还是他写错了,可是第三版啊
b*******p
发帖数: 44
4
来自主题: Java版 - TIJ上写错了?
That's what I always think. So you're saying TIJ is wrong about this?
btw, what're eden,young gen and perm gen here. Thanks.
m******t
发帖数: 2416
5
来自主题: Java版 - TIJ上写错了?

It's always a != b. But that's not what the TIJ author meant. He is
talking about the constant string pool, which contains all the literal
strings in the application, and both a and b would be backed by the same
entry in that pool. See the javadoc for String.intern().
m******t
发帖数: 2416
6
来自主题: Java版 - TIJ上写错了?

Not by what you quoted. He said "all map to the same memory," that's
referring to the underlying buffer, not the string instances.
Considering it's the 3rd edition of TIJ, I would tend to trust the author
not to make a mistake like that. 8-)
b*******p
发帖数: 44
7
来自主题: Java版 - TIJ上写错了?
I don't need that when I coding, just out of curiosity whether I understood
it wrong or TIJ was wrong... :)
A**o
发帖数: 1550
8
来自主题: Java版 - TIJ上写错了?
so tij sucks by wasting people's time on such stuff.

understood
m******t
发帖数: 2416
9
来自主题: Java版 - TIJ上写错了?

That I agree. For TIJ's intended audience, this stuff isn't necessary.
l****u
发帖数: 2166
10
来自主题: Java版 - TIJ上写错了?
what is tij a? //blush
r*****l
发帖数: 2859
11
来自主题: Java版 - TIJ上写错了?
I think people confuse the concept of "String literal" and
"String object". My understanding is:
"String literal" is the actual string.
"String object" is the object wrap around "String literal"
After the following code
String a = "abc";
String b = new String("abc");
a and b are two object since a==b is not true. While a and b
use the same string literal.
I think TIJ means the latter.
b*******p
发帖数: 44
12
来自主题: Programming版 - TIJ上写错了?
一直认为java中String对象如果用new来创建,即使内容一样(identical character
sequ
ences),也还是不同对象,当然在内存中不同地方。
只有用quoted character string(字符串常量?)初始化时,如果内容一样,就会指
向之
前创建过的String对象,而不是新建一个。如: String a="a"; String b="a";那此时
a,
b两个reference都是指向同一个对象。记得有人写过java编译会把这些字符串常量放进一
个pool里,每次加入新的时候都保证不重复创建同样内容的对象。
但前两天看TIJ 3rd上,p540说"if a program has several String objects that
conta
in identical character sequences, then those String objects ALL MAP to the
sam
e memory.这里没有区别String对象怎样创建。紧接着后面提到So it makes sense
that
the hashCOde()
t********i
发帖数: 7856
13
加拿大估计有难度。
墨西哥容易点。从 San Diego 直接过境,墨西哥入境都没人查。而且有美签可以免签
进入墨西哥(至少边境城市 Tijuana 肯定可以)。
过境之后直机场(TIJ),机场就在边境线上。墨航有 TIJ 直飞 PVG 的航线(不过不
是每天都有,要事先查好。千万不能买非直飞的,都是从美国转)。
r***y
发帖数: 4379
14
给自己一到二个月, 搞不定 TIJ 的话估计体力不够干好这个, 考虑别的吧
TIJ 仅仅是应付 CORE JAVA 面试用的, 后面搞 EE 的话耗体力的东西多着了...
t******n
发帖数: 3347
15
来自主题: Travel版 - 从墨西哥怎么回中国啊?
MEX-TIJ-PVG
即使没有,也有MEX/TIJ-NRT的AM航班
f*n
发帖数: 254
16
来自主题: Java版 - Core Java那两本砖头书太浅了
谢谢推荐。这本书最新的第四版也是07年的,刚查了一下string constant pool,还是
不详细,比如intern(),全书仅仅在一处出现,只有一句话介绍:Produces one and
only one String reference per unique character sequence.
我比较孤陋,看过的最清楚的介绍string constant pool的文字,居然是一篇刚出来的
博客:http://techcypher.blogspot.in/2014/05/string-constant-pool-in-java.html
觉得很不甘心,总觉得应该有一本经典的书把底层的东西讲清楚吧。
class loader,TIJ讲得稍微多了一点点,但是JVM最基本的几个class loader都没有提
到,也没有讲到这几个loader载入的是哪些jar文件。
其实thinking in C++颇讲了一些底层的东西,十多年前看的时候觉得不错,后来好像
发现有一些小错误,具体细节记不清了。TIJ确实也是一本经典,偏偏我想找的这两个
内容都不尽人意。
j*5
发帖数: 315
17
来自主题: Detective版 - 爆料:傲古鸭彻底完了
【 以下文字转载自 Joke 讨论区 】
发信人: jk5 (jk5), 信区: Joke
标 题: 爆料:傲古鸭彻底完了
发信站: BBS 未名空间站 (Sat Mar 27 04:11:44 2010, 美东)
Augustine(hehe)个人资料
http://74.125.93.132/search?q=cache:3uzNLc3O-TIJ:www.mitbbs.com/article_t/Dr
eamer/31891515.html+site:mitbbs.com+%E6%BD%87%E6%BD%87%E9%9B%A8%E9%97%B9%E7%
A6%BB%E5%A9%9A%E4%BA%86+dreamer&cd=3&hl=en&ct=clnk&gl=us&client=firefox-a
发信人: Dreamer (不要问我从哪里来), 信区: Dreamer
标 题: 潇潇雨闹离婚了
发信站: BBS 未名空间站 (Mon Feb 1 01:16:11 2010, 美东)
老公忍不下去了,还有一个原因是潇潇雨不肯生孩子
h***e
发帖数: 20195
18
【 以下文字转载自 Detective 讨论区 】
发信人: jk5 (jk5), 信区: Detective
标 题: 爆料:傲古鸭彻底完了
发信站: BBS 未名空间站 (Sat Mar 27 04:12:19 2010, 美东)
发信人: jk5 (jk5), 信区: Joke
标 题: 爆料:傲古鸭彻底完了
发信站: BBS 未名空间站 (Sat Mar 27 04:11:44 2010, 美东)
Augustine(hehe)个人资料
http://74.125.93.132/search?q=cache:3uzNLc3O-TIJ:www.mitbbs.com/article_t/Dr
eamer/31891515.html+site:mitbbs.com+%E6%BD%87%E6%BD%87%E9%9B%A8%E9%97%B9%E7%
A6%BB%E5%A9%9A%E4%BA%86+dreamer&cd=3&hl=en&ct=clnk&gl=us&client=firefox-a
发信人: Dreamer (不要问我从哪里来), 信区: Dreamer
标 题: 潇
h***e
发帖数: 20195
19
发信人: jk5 (jk5), 信区: Joke
标 题: 爆料:傲古鸭彻底完了
发信站: BBS 未名空间站 (Sat Mar 27 04:11:44 2010, 美东)
Augustine(hehe)个人资料
http://74.125.93.132/search?q=cache:3uzNLc3O-TIJ:www.mitbbs.com/article_t/Dr
eamer/31891515.html+site:mitbbs.com+%E6%BD%87%E6%BD%87%E9%9B%A8%E9%97%B9%E7%
A6%BB%E5%A9%9A%E4%BA%86+dreamer&cd=3&hl=en&ct=clnk&gl=us&client=firefox-a
发信人: Dreamer (不要问我从哪里来), 信区: Dreamer
标 题: 潇潇雨闹离婚了
发信站: BBS 未名空间站 (Mon Feb 1 01:16:11 2010, 美东)
老公忍不下去了,还有一个原因是潇潇雨不肯生孩子
h***e
发帖数: 20195
20
发信人: jk5 (jk5), 信区: Joke
标 题: 爆料:傲古鸭彻底完了
发信站: BBS 未名空间站 (Sat Mar 27 04:11:44 2010, 美东)
Augustine(hehe)个人资料
http://74.125.93.132/search?q=cache:3uzNLc3O-TIJ:www.mitbbs.com/article_t/Dr
eamer/31891515.html+site:mitbbs.com+%E6%BD%87%E6%BD%87%E9%9B%A8%E9%97%B9%E7%
A6%BB%E5%A9%9A%E4%BA%86+dreamer&cd=3&hl=en&ct=clnk&gl=us&client=firefox-a
发信人: Dreamer (不要问我从哪里来), 信区: Dreamer
标 题: 潇潇雨闹离婚了
发信站: BBS 未名空间站 (Mon Feb 1 01:16:11 2010, 美东)
老公忍不下去了,还有一个原因是潇潇雨不肯生孩子
h***e
发帖数: 20195
21
发信人: jk5 (jk5), 信区: Joke
标 题: 爆料:傲古鸭彻底完了
发信站: BBS 未名空间站 (Sat Mar 27 04:11:44 2010, 美东)
Augustine(hehe)个人资料
http://74.125.93.132/search?q=cache:3uzNLc3O-TIJ:www.mitbbs.com/article_t/Dr
eamer/31891515.html+site:mitbbs.com+%E6%BD%87%E6%BD%87%E9%9B%A8%E9%97%B9%E7%
A6%BB%E5%A9%9A%E4%BA%86+dreamer&cd=3&hl=en&ct=clnk&gl=us&client=firefox-a
发信人: Dreamer (不要问我从哪里来), 信区: Dreamer
标 题: 潇潇雨闹离婚了
发信站: BBS 未名空间站 (Mon Feb 1 01:16:11 2010, 美东)
老公忍不下去了,还有一个原因是潇潇雨不肯生孩子
m******5
发帖数: 107
22
这时候往墨西哥跑也来不及了。美加墨边检应该都是联网的。虽然美国没有出境边检,
但对面的墨西哥入境边检会得到消息并通知FBI来抓。墨西哥航空公司应该也能得到此
人被FBI通缉的信息。
不过去墨西哥坐飞机确实是个好主意。TIJ (蒂华纳) 有一趟直飞上海的航班 (墨航
AM098 墨西哥城——蒂华纳——上海浦东)。San Diego貌似没有直飞国内的,一般要在
LAX或SFO中转,增加被抓的几率。
W*********t
发帖数: 441
23
我是准备去TJ签证,查了一下有个Tijuana (TIJ)的国际机场,尽管机票都还挺贵的。。
墨西哥的签证我打算过几天就去弄一个的,因为专业还是有些敏感的,所以一旦check
的话觉得最好还是有个墨西哥签证吧。
因为开会就是四月,时间也比较紧,为了防止check导致计划都乱了,似乎也只能想到
这个办法了。但是在版上很少见到人直接从墨西哥飞的,不知道到底可行不可行,有些
什么没想到的,希望大家帮忙指出。谢谢了~~
f*****n
发帖数: 2126
24
如题。我的case。
记得有个帖子说,墨西哥海关在你走入墨西哥的时候直接给你7天的入境卡/visa。那
个帖子没写清楚,自己的美国visa需要不需要有效。
去年12月,我去实地考察了一次。当时 visa还有3天过期,墨西哥海关说,如果过期,
无法入境墨西哥。这一次给我3天的入境卡,不是纸质visa。
然后我就原路返回,入了美国海关。 墨西哥人排超级长的队,不知道是要办什么文件
,才可以进入美国。我就直接走到办事窗口,等了2个人。于是回答了几个问题,就让
我入境了。
当时没有盖入境的章子,我问为什么,海关说你需要么?我说没什么,算了吧。 回家
看i94的网站,还是算我出境一次,入境一次。但是Admit Until Date:没有变化。
墨西哥签证很简单,去墨西哥领事馆去办,当天办,当天取,1点之前取,3点取。

发帖数: 1
25
多谢
[在 fordvin (fvincha) 的大作中提到:]
:如题。我的case。
:记得有个帖子说,墨西哥海关在你走入墨西哥的时候直接给你7天的入境卡/visa。那
:...........
m****s
发帖数: 10867
r******l
发帖数: 10760
27
墨西哥在美墨边境线那里根本没有关口,边检在15公里以外,你走路去TJ的话根本不会
碰到任何墨西哥官员,何来什么3日有效的入境卡?你不会是做梦去的吧?
t******n
发帖数: 3347
28
个人不建议去TIJ,那边很乱。貌似现在签证也不能当天拿。。
万一被CHECK,你也不能用ar政策回来
s**********o
发帖数: 14359
29
我们不去成田,我们去上海,JAP的网站根本就没有SD或者TIJ飞上海的
y****i
发帖数: 17878
30
no nonstop flights at TIJ, either
hurricane season starts in Jun, ends in Nov
hot and humid in summer
I like Los Carbos better than Cancun
y****i
发帖数: 17878
31
来自主题: SanDiego版 - Cross-Border Bridge to Tijuana Airport
http://thepointsguy.com/2015/11/cross-border-xpress/
TIJ might be a better choice to fly out to Mexico City, Cancun, or Shanghai
than SAN
y****i
发帖数: 17878
32
来自主题: SanDiego版 - 父母来,能从San Diego出关?
always good to have options
TIJ already has a direct flight to PVG
y****i
发帖数: 17878
33
could be the case
TIJ - PVG 6,600 miles
SAN - NRT 5,600 miles
SAN - LHR 5,500 miles
s*****m
发帖数: 8094
34
赞目的。
但基佬们都在tij呢,去哪里不是效果更好?
不信基的看着也烦啊。
w**********0
发帖数: 118
35
来自主题: Travel版 - 从墨西哥怎么回中国啊?
谢谢
刚才查了一下,TIJ是 Rodriguez Airport,好像也是Mexico的阿,对吗?
c******d
发帖数: 906
36
yao
PVG-TIJ non-stop flight
D*****E
发帖数: 9352
37
恩,要是从TIJ搭飞机去MEXICO CITY的话,虽然是国内航班,但有移民局的关口查签证
和护照。
h***e
发帖数: 20195
38
【 以下文字转载自 Detective 讨论区 】
发信人: jk5 (jk5), 信区: Detective
标 题: 爆料:傲古鸭彻底完了
发信站: BBS 未名空间站 (Sat Mar 27 04:12:19 2010, 美东)
发信人: jk5 (jk5), 信区: Joke
标 题: 爆料:傲古鸭彻底完了
发信站: BBS 未名空间站 (Sat Mar 27 04:11:44 2010, 美东)
Augustine(hehe)个人资料
http://74.125.93.132/search?q=cache:3uzNLc3O-TIJ:www.mitbbs.com/article_t/Dr
eamer/31891515.html+site:mitbbs.com+%E6%BD%87%E6%BD%87%E9%9B%A8%E9%97%B9%E7%
A6%BB%E5%A9%9A%E4%BA%86+dreamer&cd=3&hl=en&ct=clnk&gl=us&client=firefox-a
发信人: Dreamer (不要问我从哪里来), 信区: Dreamer
标 题: 潇
j*5
发帖数: 315
39
来自主题: Joke版 - 爆料:傲古鸭彻底完了
Augustine(hehe)个人资料
http://74.125.93.132/search?q=cache:3uzNLc3O-TIJ:www.mitbbs.com/article_t/Dr
eamer/31891515.html+site:mitbbs.com+%E6%BD%87%E6%BD%87%E9%9B%A8%E9%97%B9%E7%
A6%BB%E5%A9%9A%E4%BA%86+dreamer&cd=3&hl=en&ct=clnk&gl=us&client=firefox-a
发信人: Dreamer (不要问我从哪里来), 信区: Dreamer
标 题: 潇潇雨闹离婚了
发信站: BBS 未名空间站 (Mon Feb 1 01:16:11 2010, 美东)
老公忍不下去了,还有一个原因是潇潇雨不肯生孩子
s*****m
发帖数: 8094
40
别转了,tij的垃圾早就过时了
s*****m
发帖数: 8094
41
来自主题: Joke版 - 进化论- phd如是说
哈哈,楼歪了!基们还是滚回tij去无厘头吧,这里顶天了是学术版。
B********e
发帖数: 19317
42
couple days ago, both applications for the TIJ board were marked G.
but yesterday they were both unGed.
not sure what is going on.
i******s
发帖数: 8734
43
来自主题: Java版 - 请推荐几本学java的书
除了TIJ 外, 还有啥比较好的 书。 适合初学者快速上手的。
thanks
g*****g
发帖数: 34805
44
来自主题: Java版 - TIJ上写错了?
应该不同。str1 != str2,但是str1.equals(str2) == true
hashCode应该override了。

进一
m******t
发帖数: 2416
45
来自主题: Java版 - TIJ上写错了?
Can you repost the quote below? The part following "several String objects
that..." is kind of messed up, which I think could actually be critical in
understanding what the author is trying to say.
b*******p
发帖数: 44
46
来自主题: Java版 - TIJ上写错了?
3x.
Strings have the special characteristic that if a program has several String
objects that contain identical character sequences, then those String
objects all map to the same memory (the mechanism for this is described in
Appendix A). So it makes sense that the hashCode( ) produced by two separate
instances of new String(“hello”) should be identical.

objects
m******t
发帖数: 2416
47
来自主题: Java版 - TIJ上写错了?

String
Well I know this is definitely true for the simple cases, e.g., new String("
Hello") or s = "Hello" would always map to the same entry in the constant
pool.
What I'm not sure is cases like:
String s1 = "Hello World";
String s2 = foo1.bar1() + foo2.bar2();
If s2 ends up having exactly "Hello World", would that be the same entry in
the pool? To achieve that, the JVM would have to do a lookup after _every_
concatenation, which is probably more inefficient than allocating a new
buffer.
The
b*******p
发帖数: 44
48
来自主题: Java版 - TIJ上写错了?
But
String a = "a";
String b = new String("a");
a == b will return false, how could they map to the same instance?

("
in
_
l****u
发帖数: 2166
49
来自主题: Java版 - TIJ上写错了?
string by new String("aaa") are not pooled.
they are just staying at eden or young gen
while pooled strings are staying at perm gen.
so they are not pointing to same memory address.
b*******p
发帖数: 44
50
来自主题: Java版 - TIJ上写错了?
well, that's my point. I think he consider those String objects created
using new the same as literal strings. So you also think he is wrong about
this.
1 2 末页 (共2页)