Кстати, я свою первую работу abroad искал год или полтора. Разослал в общей сложности около двух тысяч резюме в США, Канаду и Европу. Вот так.

Brat wrote:Montchik wrote:Список наиболее часто задаваемых вопросов
...
Мои 'Шпаргалки':
...
Вот это - что надо!!!Огромное спасибо, Андрей! 'Шпаргалки' - просто кладезь!
![]()
Надо бы нам всем взять за правило делиться такими материалами!
fessa wrote: Только линки уже не доступны, может кто скачал - перезальёт, на rapidshare.de, например?
Montchik wrote:- Inheritance vs composition
Montchik wrote:Almost everybody asked about two ways of implementing Singleton.
Montchik wrote:- Java collections framework. Differences between Hashtable and Hashmap, differences between ArrayList and LinkedList. Concurrent access and modification of the List.
jgreen wrote:Montchik wrote:- Inheritance vs composition
Тут плаваю видимо. Какой правильный ответ?
Composition (aka association) is another means of achieving re-use. Put an object inside another object and the first object can re-use the code behind the composed object.
jgreen wrote:Montchik wrote:Almost everybody asked about two ways of implementing Singleton.
Two ways? Знаю один. Или надо простой (классический паттерн) и отдельно thread-safe? Это значит два?
Если был вопрос про reflection чтобы получить 2 синглтона, то скажем, можно обойтись и без него. То есть делаем предположение что policy запрещает доступ к private членам класса. Действуем только Public-путямиNik0 wrote:А что - использование reflection допускается?
Nik
нет, не будет:Nik0 wrote:Ну тогда take this:
Test test=(Test)Test.class.newInstance(); code outside of Test
where Test(){} is the only and private constructor
<< removed because of irrelevance, sorry
and public static Test.test=new Test(); - initialized within Test
>>
Does this work?
надо чтобы безпараметровый констрактор был виден.class is instantiated as if by a new expression with an empty argument list.
Code: Select all
java.lang.IllegalAccessException: Class xxx.T1 can not access a member of class xxx.S1 with modifiers "private"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
at java.lang.Class.newInstance0(Class.java:302)
at java.lang.Class.newInstance(Class.java:261)
at xxx.T1.main(T1.java:13)
Exception in thread "main"