avatar
Can I file 485 now# EB23 - 劳工卡
s*e
1
今天被问到了一个小的面试题如下,请大家帮忙讨论一下:
Java中,如何保证一个 singleton的实例不会被 垃圾回收?
avatar
d*9
2
请问 I-767表中 以前的EAD卡包括 OPT的EAD卡吗? 还是只指file485时,得到的EAD卡。
avatar
M*6
3
EB3, just became current but the visa status had already changed to B2 due
to the lost of job. Can I file 485? I have a copy of the I140 for my
previous employer.
If not, what should I do in order to file it? Thanks.
avatar
g*g
4
USING suppressfinalize METHOD
avatar
e*c
5
read pijiang's blog

卡。

【在 d********9 的大作中提到】
: 请问 I-767表中 以前的EAD卡包括 OPT的EAD卡吗? 还是只指file485时,得到的EAD卡。
avatar
w*r
6
no...
you need to stay in the same job or your previous employee is willing to off
er the same job to you

【在 M***6 的大作中提到】
: EB3, just became current but the visa status had already changed to B2 due
: to the lost of job. Can I file 485? I have a copy of the I140 for my
: previous employer.
: If not, what should I do in order to file it? Thanks.

avatar
s*d
7
是说在finalize()里写code让singleton 的instance不被garbage collection?
coask
avatar
M*6
8
So even if I'm not in my previous position but my ex-employer agrees to
offer me the same job, I can still apply? Thanks.
avatar
s*e
9
如果将这个 singleton类定义成static类,能否实现该目的?

【在 g*********g 的大作中提到】
: USING suppressfinalize METHOD
avatar
w*r
10
yes!

【在 M***6 的大作中提到】
: So even if I'm not in my previous position but my ex-employer agrees to
: offer me the same job, I can still apply? Thanks.

avatar
s*e
11
是说用注解Annotation的方式?
请详细再说说,最好能有一个简单的示例。谢谢! :)

【在 g*********g 的大作中提到】
: USING suppressfinalize METHOD
avatar
M*6
12
This is really helpful. How can I approve in my application that my previous
employer is willing to offer me the same position? Thanks again!
avatar
s*e
13
我在JAVA的API里没有看到这个suppressfinalize METHOD。
“USING suppressfinalize”这个是C#的语法。

【在 g*********g 的大作中提到】
: USING suppressfinalize METHOD
avatar
V*n
14
You will need an employment verification letter in your 485 filing to prove
that you are or you will be a full time employee

previous

【在 M***6 的大作中提到】
: This is really helpful. How can I approve in my application that my previous
: employer is willing to offer me the same position? Thanks again!

avatar
a*1
15
不用weak的话本来就不会收回吧?
avatar
s*e
18
请详细说一下如何“一直维护”?

【在 U*******L 的大作中提到】
: 开个线程一直跑着维护这个实例的引用就行了,费那劲干嘛
avatar
e*t
19
Simply making the object be a static memeber variable of the class, and
that is the norm of writing a singleton class.
The object is referenced by the class, as long as the class is referenced by
the classloader, the object won't be collected.
And for entry level, I don't think they want to go down to discussion about
classloaders.

今天被问到了一个小的面试题如下,请大家帮忙讨论一下:
Java中,如何保证一个 singleton的实例不会被 垃圾回收?

【在 s********e 的大作中提到】
: 今天被问到了一个小的面试题如下,请大家帮忙讨论一下:
: Java中,如何保证一个 singleton的实例不会被 垃圾回收?

avatar
s*e
20
Thanks!

by
about

【在 e*****t 的大作中提到】
: Simply making the object be a static memeber variable of the class, and
: that is the norm of writing a singleton class.
: The object is referenced by the class, as long as the class is referenced by
: the classloader, the object won't be collected.
: And for entry level, I don't think they want to go down to discussion about
: classloaders.
:
: 今天被问到了一个小的面试题如下,请大家帮忙讨论一下:
: Java中,如何保证一个 singleton的实例不会被 垃圾回收?

avatar
V*B
21
finalize()是garbage collection之前要调用的,而且只调用一次
也就是说,第二次garbage collection的时候就不再调用finalize()
我觉得不是用finalize()

【在 s******d 的大作中提到】
: 是说在finalize()里写code让singleton 的instance不被garbage collection?
: coask

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。