Some questions

来源:互联网 发布:淘宝残疾人扶持 编辑:程序博客网 时间:2024/05/21 03:17

  I've not been there a time,as study is not very luck.More forward,More hard.This is not a good feeling,sometime make you lost.But as the old saying: the life will continue.So whatever how hard it is,we need stick to. Or that will be the worse thing.

  Although,I didn't read too much about java,I've see some questions.As follow:

1.When using the java.securtity.policy property,what is the difference between using the equals sign "=" and the double eauals sign "==" when specifying the policy file name?The book tell me the former is creating a "final policy" by doing a union of all granted permissions in all policy files,and the later is ignore any policy file definitions in the java.security file and only use the policy files specified.I think i can understand the later one,but the oter can't.Is that using all policy in the java.security file?

2.About the notify() method.As you know,in the Object class there are notify(),notifyAll(,),and wait() method.In my view,we can use notify() to remove a thread from the object wait queue and make it runnable.But there is another say that when an object has multiple Threads waithing for it,there is no way to control which of the waiting Threads will be notified.So I don't know which one is right and what is the notify() method do?

These are questions,I don't know if you can understand my weak writing. So thank you very much and thanks for your suggestions.