{"id":127,"date":"2014-01-25T00:49:26","date_gmt":"2014-01-24T21:49:26","guid":{"rendered":"http:\/\/blog.leodev.ru\/?p=127"},"modified":"2018-09-11T21:04:46","modified_gmt":"2018-09-11T18:04:46","slug":"programmer-interview","status":"publish","type":"post","link":"https:\/\/leodev.ru\/blog\/news\/programmer-interview\/","title":{"rendered":"\u0421\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u0438\u043b\u0438 60+ \u0434\u043d\u0435\u0439 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f"},"content":{"rendered":"<p style=\"text-align: left;\">\u0415\u0449\u0435 \u0434\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0433\u043e\u0434\u0430 \u044f \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u043b\u0441\u044f \u0443\u0435\u0445\u0430\u0442\u044c \u0438\u0437 \u041a\u0440\u044b\u043c\u0430 \u0432 \u0414\u043d\u0435\u043f\u0440\u043e\u043f\u0435\u0442\u0440\u043e\u0432\u0441\u043a \u0438 \u0441 \u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u043c\u043e\u0435 \u0441\u0430\u043c\u043e\u0435 \u0437\u0430\u0442\u044f\u043d\u0443\u0442\u043e\u0435 \u0442\u0440\u0443\u0434\u043e\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443. \u0420\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0447\u0442\u043e \u0437\u0430 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u044f \u043d\u0435 \u0441\u0442\u0430\u043d\u0443, \u043d\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u043e \u043e\u0433\u043e\u0432\u043e\u0440\u044e\u0441\u044c \u0447\u0442\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0439 \u043d\u0430 RCP \u0438 Swing.<\/p>\n<h1>\u0418\u0441\u0442\u043e\u043a\u0438<\/h1>\n<p>\u041d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u0441 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0435\u0449\u0435 \u0437\u0430 \u043f\u0430\u0440\u0443 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0434\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0433\u043e\u0434\u0430 \u043c\u043d\u0435 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0438 \u043d\u0430\u0437\u043e\u0439\u043b\u0438\u0432\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0432\u0430\u043b HR, \u043d\u043e \u044f \u0431\u044b\u043b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0437\u0430\u043d\u044f\u0442 \u0447\u0430\u0441\u0442\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438 \u0434\u0430 \u0438 \u043a\u0430\u043a \u0440\u0430\u0437 \u0441\u043e\u0431\u0440\u0430\u043b \u0441\u0432\u043e\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u041d\u0415 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u043e\u043c &#171;\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0435&#187; \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u043b\u043e \u043d\u0435 \u0434\u043e \u0440\u0430\u0431\u043e\u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439. \u041d\u043e \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f &#171;<em>\u0443\u043f\u043e\u0440\u0441\u0442\u0432\u043e \u0438 \u0442\u0440\u0443\u0434 \u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u0442\u0440\u0443\u0442<\/em>&#187; &#8212; \u044f \u043f\u043b\u0430\u0432\u043d\u043e \u043d\u0430\u0447\u0430\u043b \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0442\u044c\u0441\u044f \u043d\u043e \u0441\u043a\u0430\u0437\u0430\u043b \u0447\u0442\u043e \u0434\u0430\u0432\u043d\u043e \u043d\u0435 \u0445\u043e\u0434\u0438\u043b \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u0444\u0440\u0438\u043b\u0430\u043d\u0441 \u0432\u043f\u043e\u043b\u043d\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u043a\u043e\u0440\u043c\u0438\u0442, \u00a0\u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435\u00a0\u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b 2 \u043d\u0435\u0434\u0435\u043b\u0438 \u043d\u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0443. \u0422\u0430\u043a \u0436\u0435 \u0432 \u043a\u043e\u0440\u043e\u0442\u043a\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u043a\u0430\u043a \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0435\u0440\u0435\u0435\u0437\u0434\u0430 \u0432 \u0414\u043d\u0435\u043f\u0440\u043e\u043f\u0435\u0442\u0440\u043e\u0432\u0441\u043a \u0438 \u043e\u0442\u0432\u0435\u0442\u0438\u043b\u0430 \u043d\u0430 \u0440\u044f\u0434 \u043c\u043e\u0438\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432.<\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043d\u0443\u0436\u043d\u043e:<\/p>\n<ol>\n<li>\u041f\u0440\u043e\u0439\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u0441 \u0441\u0430\u0439\u0442 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u043c<\/li>\n<li>\u041f\u0440\u043e\u0439\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u0441 \u043f\u0440\u043e\u0434\u0436\u0435\u043a\u0442 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u043c<\/li>\n<li>\u041f\u0440\u043e\u0439\u0442\u0438 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e<\/li>\n<li>\u0420\u0435\u0448\u0438\u0442\u044c 3 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0448\u043b\u0435\u0442 \u043a\u0430\u0441\u0442\u043e\u043c\u0435\u0440<!--more--><\/li>\n<\/ol>\n<p>\u0427\u0435\u0440\u0435\u0437 2 \u043d\u0435\u0434\u0435\u043b\u0438 \u043c\u044b \u0441\u043e\u0437\u0432\u043e\u043d\u0438\u043b\u0438\u0441\u044c \u0438 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438\u0441\u044c \u043e \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438 \u0441 \u0441\u0430\u0439\u0442 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u043c.<\/p>\n<pre>(14 \u0434\u043d\u0435\u0439 \u043d\u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0443)<\/pre>\n<h1>\u0421\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0441 \u0441\u0430\u0439\u0442 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u043c<\/h1>\n<p>\u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u043f\u043e\u0437\u0432\u043e\u043d\u0438\u043b \u043c\u043d\u0435 \u0421\u0435\u0440\u0433\u0435\u0439 (\u0441\u0430\u0439\u0442 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440) \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b \u043e \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u044f\u0449\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 . \u00a0\u041d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0443\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u0432\u044b\u0448\u0435 100 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0438 \u0442\u0430\u043c \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e\u00a0\u043c\u043d\u043e\u0433\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432. \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u043c\u043e\u0439 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u043d\u044b\u0439 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0438 \u0432 \u043e\u0431\u0449\u0435\u043c \u043f\u043e \u0435\u0433\u043e \u0441\u043b\u043e\u0432\u0430\u043c \u0432\u0441\u0435 \u043f\u0440\u043e\u0448\u043b\u043e \u0445\u043e\u0440\u043e\u0448\u043e. \u0412 \u043e\u0431\u0449\u0435\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0437\u0430\u043d\u044f\u043b\u043e \u043e\u043a\u043e\u043b\u043e 60 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044f \u0432\u043d\u043e\u0432\u044c \u0441\u0432\u044f\u0437\u0430\u043b\u0441\u044f \u0441 HR \u0438 \u043e\u043d\u0430 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u043b\u0430 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0435\u0449\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0434\u0435\u043b\u044e. \u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f PM&#8217;a \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u0441\u0430\u0439\u0442 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u043c \u0431\u044b\u043b\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0445\u043e\u0442\u044f \u0434\u0443\u043c\u0430\u044e \u043f\u0440\u043e\u0441\u0442\u043e \u0443 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 =)<\/p>\n<blockquote><p>\u0411\u0435\u0441\u0435\u0434\u044b \u0441 \u041f\u041c\u043c\u043e\u043c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0430 \u0443\u0436\u0435 \u0431\u044b\u043b\u0430. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u044f\u0442 \u0442\u0432\u043e\u0435 \u0440\u0435\u0437\u044e\u043c\u0435 \u0441\u0440\u0430\u0437\u0443 \u043d\u0430 \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0430)<\/p><\/blockquote>\n<pre>+7 \u0434\u043d\u0435\u0439 \u0433\u043e\u0442\u043e\u0432\u0438\u043c Swing &amp; Concurrency<\/pre>\n<h1>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h1>\n<p>\u041f\u0440\u043e\u0448\u043b\u0430 \u043d\u0435\u0434\u0435\u043b\u044f \u0438 \u043c\u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043d\u0438\u043b \u042e\u0440\u0438\u0439, \u043d\u0430 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f \u043f\u043e\u043d\u044f\u043b \u043e\u043d \u0442\u0438\u043c\u043b\u0438\u0434 \u043d\u043e \u043d\u0435 \u0441 \u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043a\u0443\u0434\u0430 \u043c\u0435\u043d\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u043b\u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c. \u00a0\u0420\u043e\u0432\u043d\u043e \u0447\u0430\u0441 \u043c\u044b \u0438\u0433\u0440\u0430\u043b\u0438 \u0441 \u043d\u0438\u043c \u0432 \u0438\u0433\u0440\u0443 &#171;\u0432\u043e\u043f\u0440\u043e\u0441-\u043e\u0442\u0432\u0435\u0442&#187; ;). \u041e\u0431\u0441\u0443\u0436\u0434\u0430\u043b\u0438\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0435\u043c\u044b:<\/p>\n<ul>\n<li>\u041e\u0431\u043b\u0430\u0441\u0442\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 JVM?<\/li>\n<\/ul>\n<ol>\n<li>Eden Space[\u0418\u0434\u044d\u043d \u0441\u043f\u044d\u0439\u0441] (heap) \u2013 \u0432 \u044d\u0442\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432\u044b\u0434\u0435\u043b\u044f\u0442\u0441\u044f \u043f\u0430\u043c\u044f\u0442\u044c \u043f\u043e\u0434 \u0432\u0441\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0438\u0437 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u044b. \u0411\u043e\u043b\u044c\u0448\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0436\u0438\u0432\u0435\u0442 \u043d\u0435\u0434\u043e\u043b\u0433\u043e (\u0438\u0442\u0435\u0440\u0430\u0442\u043e\u0440\u044b, \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0438 \u0442.\u043f.), \u0438 \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0441\u0431\u043e\u0440\u043e\u043a \u043c\u0443\u0441\u043e\u0440\u0430 \u044d\u0442\u043e \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043f\u0430\u043c\u044f\u0442\u0438, \u043d\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u0434\u0440\u0443\u0433\u0438\u0435 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043f\u0430\u043c\u044f\u0442\u0438. \u041a\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f (\u0442.\u0435. \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432 \u044d\u0442\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u043d\u0442), GC \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u0443\u044e (minor collection) \u0441\u0431\u043e\u0440\u043a\u0443 \u043c\u0443\u0441\u043e\u0440\u0430. \u041f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043f\u043e\u043b\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u043e\u0439 \u043c\u0443\u0441\u043e\u0440\u0430 \u043e\u043d\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0438 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0443 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u0438 \u2014 \u043e\u0447\u0438\u0449\u0430\u0435\u0442 \u043e\u0442 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 Eden Space \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u0442 \u0432\u044b\u0436\u0438\u0432\u0448\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043e\u0431\u043b\u0430\u0441\u0442\u044c.<\/li>\n<li>Survivor Space[\u0421\u043e\u0432\u0430\u0439\u0432\u043e\u0440 \u0441\u043f\u044d\u0439\u0441] (heap) \u2013 \u0441\u044e\u0434\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439, \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043e\u043d\u0438 \u043f\u0435\u0440\u0435\u0436\u0438\u043b\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u0443 \u0441\u0431\u043e\u0440\u043a\u0443 \u043c\u0443\u0441\u043e\u0440\u0430. \u0412\u0440\u0435\u043c\u044f \u043e\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438\u0437 \u044d\u0442\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u0432 Tenured Space.<\/li>\n<li>Tenured[\u0422\u044d\u043d\u0439\u043e\u0434] (Old) Generation (heap) \u2014 \u0417\u0434\u0435\u0441\u044c \u0441\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b (\u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u0432\u044b\u0441\u043e\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d\u044b, \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u043f\u0440\u043e\u0447.). \u041a\u043e\u0433\u0434\u0430 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u044d\u0442\u0430 \u043e\u0431\u043b\u0430\u0441\u0442\u044c, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430 \u043c\u0443\u0441\u043e\u0440\u0430 (full, major collection), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 JVM \u043e\u0431\u044a\u0435\u043a\u0442\u044b.<\/li>\n<li>Permanent Generation (non-heap) \u2013 \u0417\u0434\u0435\u0441\u044c \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043c\u0435\u0442\u0430\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f JVM (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b, \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u0442.\u043f.). \u0412 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0438<\/li>\n<li>Code Cache (non-heap) \u2014 \u044d\u0442\u0430 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f JVM, \u043a\u043e\u0433\u0434\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 JIT-\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f, \u0432 \u043d\u0435\u0439 \u043a\u0435\u0448\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e \u2014 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0439 \u043a\u043e\u0434.<\/li>\n<\/ol>\n<ul>\n<li>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 GC? \u00a0&#8212;\u00a0http:\/\/habrahabr.ru\/post\/112676\/<\/li>\n<li>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 weakreference? &#8212; \u0441\u043b\u0430\u0431\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430<\/li>\n<li>\u041a\u0430\u043a\u0438\u0435 \u0435\u0449\u0435 \u0431\u044b\u0432\u0430\u044e\u0442 \u0441\u0441\u044b\u043b\u043a\u0438? &#8212;\u00a0strong, soft, weak, phantom<\/li>\n<li>BigCopy SmallCopy &#8212; \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \/ \u043d\u0435 \u0433\u0443\u0431\u043e\u043a\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/li>\n<li>\u0412\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 &#8212; <em>\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0431\u044a\u0451\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u044b, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0439 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u043c, \u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/em><\/li>\n<li>Exception cheked\/ uncheked &#8212; <em>Runtime exceptions \u0438 Error \u0438 \u0438\u0445 \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u044b \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 uncheked &#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e. \u041d\u043e \u0436\u0435\u0441\u0442\u043a\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u043d\u0435\u0442<\/em><\/li>\n<li>\u0417\u0430\u0447\u0435\u043c spring \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 checked \u044d\u043a\u0441\u0435\u043f\u0448\u0435\u043d\u044b \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c \u044d\u043a\u0441\u0435\u043f\u0448\u0435\u043d\u044b<\/li>\n<li>Thread local &#8212; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 ThreadLocal \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b, \u043a\u043e\u0433\u0434\u0430 \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430.<\/li>\n<li>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Pool Thread? \u041a\u0430\u043a \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442? &#8212; \u043e\u0442\u0432\u0435\u0442\u0438\u043b \u0447\u0438\u0441\u0442\u043e \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e<\/li>\n<li>Volotile &#8212; \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0441 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c volatile(\u00ab\u0438\u0437\u043c\u0435\u043d\u0447\u0438\u0432\u044b\u0439\u00bb) \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043f\u043e\u0442\u043e\u043a\u0430\u043c\u0438.<\/li>\n<li>Use case \u0434\u043b\u044f Volotile(\u0433\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f)<\/li>\n<li>Rentrantlock vs synhronised<\/li>\n<li>event dispatcher<\/li>\n<li>invokelater()<\/li>\n<li><a href=\"http:\/\/blog.leodev.ru\/java-dynamic-proxy\/\" target=\"_blank\" rel=\"noopener\">\u041f\u0430\u0442\u0442\u0435\u0440\u043d Proxy(\u0437\u0430\u043c\u0435\u0441\u0442\u0438\u0442\u0435\u043b\u044c)<\/a><\/li>\n<li>\u0423\u0440\u043e\u0432\u043d\u0438 \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439<\/li>\n<li>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0421\u043f\u043b\u0430\u0438\u043d(\u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c)<\/li>\n<li>\u0418\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u044f, \u044d\u043a\u0441\u0442\u0440\u0430\u043f\u043e\u043b\u044f\u0446\u0438\u044f<\/li>\n<li>\u041a\u0430\u043a \u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u0432 \u0431\u043b\u043e\u043a\u0435 finally()? \u00a0&#8212; System.exit(0)<\/li>\n<\/ul>\n<p>\u0427\u0430\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u044f \u043d\u0435 \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u043b, \u043d\u043e \u0431\u044b\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e. \u041a\u0430\u043a \u0431\u044b \u0442\u0430\u043c \u043d\u0438 \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u044e\u0442 \u043e\u0442\u043b\u0438\u0447\u043d\u0443\u044e \u0432\u0441\u0442\u0440\u044f\u0441\u043a\u0443 \u0441\u0435\u0440\u044b\u043c \u0431\u0443\u0434\u043d\u044f\u043c \u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u0438\u043b\u0438 \u043f\u043e\u0434\u0442\u044f\u043d\u0443\u0442\u044c.<\/p>\n<p>\u0412\u043d\u043e\u0432\u044c \u0441\u0432\u044f\u0437\u0430\u0432\u0448\u0438\u0441\u044c \u0441 HR \u043e\u043d\u0430 \u0441\u043e\u043e\u0431\u0449\u0438\u043b\u0430<\/p>\n<blockquote><p>\u0413\u0440\u0438\u0433\u043e\u0440\u0438\u0439 \u043f\u0430\u0440\u0435\u043d\u044c \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0439 \u0438 \u0441\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439, \u044f \u043e\u0436\u0438\u0434\u0430\u044e \u043e\u0442 \u043d\u0435\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430.<\/p>\n<p>\u041e\u0442\u0432\u0435\u0442\u044b \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u044b\u043b\u0438 \u043f\u043e\u043b\u043d\u044b\u043c\u0438 \u0438 \u0438\u0441\u0447\u0435\u0440\u043f\u044b\u0432\u0430\u044e\u0449\u0438\u043c\u0438, \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u0435\u043b\u044b, \u043d\u043e \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442 \u0441\u043a\u043e\u0440\u0435\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f.<br \/>\n\u0421 \u0443\u0447\u0435\u0442\u043e\u043c \u0435\u0433\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 Java \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0437\u043d\u0430\u043d\u0438\u0439 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0439.<br \/>\n\u041f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0443\u043c\u0435\u043d\u0438\u0435 \u00ab\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0443\u0434\u0430\u0440\u00bb \u043d\u0430 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u0445, \u0445\u043e\u0434 \u0440\u0430\u0441\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0439..<\/p><\/blockquote>\n<p>\u041d\u0443 \u043d\u0435 \u043f\u043e\u0441\u043f\u043e\u0440\u0438\u0448\u044c \u043e\u0442\u0432\u0435\u0447\u0430\u043b \u044f \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e ))) \u043d\u043e\u00a0\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043c\u0435\u043d\u044f \u0443\u0448\u0435\u043b \u043a\u0430\u0441\u0442\u043e\u043c\u0435\u0440\u0443 \u0437\u0430 \u0431\u0443\u0433\u043e\u0440, \u00a0\u0436\u0434\u0435\u043c \u043e\u0442\u0432\u0435\u0442\u0430 &#8212; \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0447\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u043d\u0435 \u0432\u044b\u043d\u043e\u0441\u0438\u043c\u043e&#8230; \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b\u0438 \u0432\u0441\u0435<\/p>\n<h1>\u041c\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435<\/h1>\n<p>\u0418\u0442\u0430\u043a, \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043c\u0435\u043d\u044f \u0443\u0448\u0435\u043b<strong> 24 \u0434\u0435\u043a\u0430\u0431\u0440\u044f<\/strong> 2013 \u0433\u043e\u0434\u0430 =)<\/p>\n<p><strong>30-\u0433\u043e \u0434\u0435\u043a\u0430\u0431\u0440\u044f<\/strong> \u044f \u043f\u043e\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0441\u044f \u043a\u0430\u043a \u0434\u0435\u043b\u0430 \u043d\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0441\u044f \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0447\u0438\u0432, HR \u0434\u0430\u043b\u0430 \u0437\u043d\u0430\u0442\u044c \u0447\u0442\u043e \u0443 \u043d\u0438\u0445 \u043e\u0442\u0434\u044b\u0445 \u0434\u043e 8-\u0433\u043e \u043d\u043e PM \u0432\u044b\u0439\u0434\u0435\u0442 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 2-\u0433\u043e \u0442\u0430\u043a \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0447\u0442\u043e \u0441\u0432\u044f\u0436\u0435\u0442\u0441\u044f \u0441\u043e \u043c\u043d\u043e\u0439.<\/p>\n<p>8 \u044f\u043d\u0432\u0430\u0440\u044f &#8212; &#8230;\u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439<\/p>\n<p>10 \u044f\u043d\u0432\u0430\u0440\u044f &#8212; &#8230;\u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439<\/p>\n<p>13 \u044f\u043d\u0432\u0430\u0440\u044f &#8212; &#8230;\u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439<\/p>\n<p>15 \u044f\u043d\u0432\u0430\u0440\u044f &#8212; &#8230;\u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439<\/p>\n<p>\u0418 \u0432\u043e\u0442 21 \u044f\u043d\u0432\u0430\u0440\u044f \u043f\u0440\u0438\u0448\u0435\u043b \u043e\u0442\u0432\u0435\u0442..<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0438&#8230;<\/p>\n<p>\u0441 24.10 \u043f\u043e 21.01 = 29 \u0434\u043d\u0435\u0439<\/p>\n<p>29+7+14 = <strong>50 \u0434\u043d\u0435\u0439<\/strong>.. \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0438 \u0441\u043a\u0430\u0437\u0430\u043b \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0434\u043b\u0438\u043d\u043d\u043e\u0435 \u043c\u043e\u0435 \u0442\u0440\u0443\u0434\u043e\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e&#8230;<\/p>\n<h1>\u0420\u0435\u0448\u0438\u0442\u044c 3 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0448\u043b\u0435\u0442 \u043a\u0430\u0441\u0442\u043e\u043c\u0435\u0440<\/h1>\n<p>\u041f\u0440\u0438\u0441\u043b\u0430\u043b\u0438 \u0442\u0435\u0441\u0442 \u043d\u0430 110 \u043c\u0438\u043d\u0443\u0442 3 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<figure id=\"attachment_128\" aria-describedby=\"caption-attachment-128\" style=\"width: 840px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/1-task.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-128 size-large\" src=\"http:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/1-task-1024x556.png\" alt=\"\" width=\"840\" height=\"456\" srcset=\"https:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/1-task-1024x556.png 1024w, https:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/1-task-300x163.png 300w, https:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/1-task.png 1600w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-128\" class=\"wp-caption-text\">\u0417\u0430\u0434\u0430\u0447\u0430 1<\/figcaption><\/figure>\n<p>1 \u0437\u0430\u0434\u0430\u0447\u0430 \u0432 \u0446\u0435\u043b\u043e\u043c \u0438 \u0441\u0442\u0430\u043b\u0430 \u0440\u0435\u0448\u0430\u044e\u0449\u0438\u043c \u0437\u0432\u0435\u043d\u043e\u043c. \u0412\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0430\u043c\u043e\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u043d\u0430 \u043f\u043e\u0442\u043e\u043c \u0443\u043f\u043e\u0440 \u0431\u044b\u043b \u0441\u0434\u0435\u043b\u0430\u043d \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u0435\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u0443. \u0423\u0432\u044b 110 \u043c\u0438\u043d\u0443\u0442 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043b\u0438 \u0441\u0435\u0431\u044f \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \ud83d\ude41<\/p>\n<pre class=\"width-set:true width:600 lang:default decode:true\">public class Solution {\n    int solution(boolean[][] A) {\n        int N, M;\n\n        N = A.length;\n        if (N &gt; 0) {\n            M = A[0].length;\n        } else return 0;\n        if (M == 0) return 0;\n\n        int x = 0;\n        int y = 0;\n        int L = 1;\n\n        while (fit(A, x, y, L)) L++;\n\n        List&lt;Square&gt; positions = new ArrayList&lt;Square&gt;();\n\n        positions.add(new Square(x, y, L));\n\n        int minL = 0;\n\n        while (positions.size() &gt; 0) {\n\n            for (int i = positions.size()-1; i &gt;= 0; i--) {\n                Square pos = positions.get(i);\n\n                if ((pos.x == (N - pos.L)) &amp;&amp; (pos.y == (M - pos.L))) {\n                    \/\/ finished!\n                    if (minL &lt; pos.L) {\n                        minL = pos.L;\n                    }\n                    positions.remove(i);\n                    continue;\n                }\n\n                boolean moveDown = canMoveDown(A, pos);\n                boolean moveRight = canMoveRight(A, pos);\n\n                if (moveDown) {\n                    Square newPoint = new Square(pos);\n                    newPoint.x++;\n                    positions.add(newPoint);\n                }\n\n                if (moveRight) {\n                    Square newPoint = new Square(pos);\n                    newPoint.y++;\n                    positions.add(newPoint);\n                }\n\n                if (moveDown || moveRight) {\n                    positions.remove(i);\n                    continue;\n                }\n\n                if (!moveDown &amp;&amp; !moveRight) {\n                    pos.L--;\n                    if (pos.L ==0) {\n                        positions.remove(i);\n                        continue;\n                    }\n                }\n            }\n        }\n        return minL;\n    }\n\n    boolean fit(boolean[][] A, int x, int y, int L) {\n        for (int i = x; i &lt; x + L; i++) {\n            for (int j = y; j &lt; y + L; j++) {\n                if ((i&gt;=A.length) || (j&gt;=A[i].length) || !A[i][j]) return false;\n            }\n        }\n        return true;\n    }\n\n    boolean canMoveDown(boolean[][] A, Square pos) {\n        return fit(A, pos.x + 1, pos.y, pos.L);\n    }\n\n    boolean canMoveRight(boolean[][] A, Square pos) {\n        return fit(A, pos.x, pos.y + 1, pos.L);\n    }\n\n    public static void main(String[] args) {\n        boolean[][] A = {\n                {true, true, true, false},\n                {true, true, true, false},\n                {true, true, true, false},\n                {true, true, true, true},\n                {false, true, true, true},\n                {true, false, true, true}\n        };\n\n        System.out.println(new Solution().solution(A));\n\n        boolean[][] B = {\n                {true,true, false, false},\n                {true,false, false, false},\n                {false,true, false, true}\n        };\n\n        System.out.println(new Solution().solution(B));\n\n        boolean[][] C = {\n                {true}\n        };\n\n        System.out.println(new Solution().solution(C));\n\n        boolean[][] D = {\n                {true, false, true, false},\n                {true, false, true, false},\n                {true, false, true, false},\n                {true, false, true, true},\n                {true, true, true, true},\n                {false, true, true, true}\n        };\n\n        System.out.println(new Solution().solution(D));\n\n        boolean[][] E = {\n                {true, true, true, false},\n                {true, true, true, true},\n                {true, true, true, true},\n                {true, false, true, true},\n                {true, true, true, true},\n                {false, true, true, true}\n        };\n\n        System.out.println(new Solution().solution(E));\n\n    }\n}\n\nclass Square {\n    int x;\n    int y;\n    int L;\n\n    Square(int x, int y, int L) {\n        this.x = x;\n        this.y = y;\n        this.L = L;\n    }\n\n    Square(Square pos) {\n        x = pos.x;\n        y = pos.y;\n        L = pos.L;\n    }\n}<\/pre>\n<figure id=\"attachment_129\" aria-describedby=\"caption-attachment-129\" style=\"width: 840px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/2-task.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-129 size-large\" src=\"http:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/2-task-1024x501.png\" alt=\"\" width=\"840\" height=\"411\" srcset=\"https:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/2-task-1024x501.png 1024w, https:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/2-task-300x147.png 300w, https:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/2-task.png 1600w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-129\" class=\"wp-caption-text\">\u0417\u0430\u0434\u0430\u0447\u0430 2<\/figcaption><\/figure>\n<p>2 \u0437\u0430\u0434\u0430\u0447\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043a\u0443\u0434\u0430 \u043b\u0435\u0433\u0447\u0435 \u0432 \u043f\u0435\u0440\u0435\u043a\u0443\u0440\u0435 \u0431\u044b\u043b\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0437\u0430 \u043f\u0430\u0440\u0443 \u043c\u0438\u043d\u0443\u0442<\/p>\n<pre class=\"lang:default decode:true\">    public int solution(int n) {\n        long i = 1;\n        int result = 0;\n        while(n &gt;= i){\n            i *= 5;\n            result += n\/i;\n        }\n        return result;\n    }<\/pre>\n<figure id=\"attachment_130\" aria-describedby=\"caption-attachment-130\" style=\"width: 840px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/3-task.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-130 size-large\" src=\"http:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/3-task-1024x556.png\" alt=\"\" width=\"840\" height=\"456\" srcset=\"https:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/3-task-1024x556.png 1024w, https:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/3-task-300x163.png 300w, https:\/\/leodev.ru\/blog\/wp-content\/uploads\/2014\/01\/3-task.png 1600w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-130\" class=\"wp-caption-text\">\u0417\u0430\u0434\u0430\u0447\u0430 3<\/figcaption><\/figure>\n<p>\u041d\u0443 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f.. \u0447\u0435\u0441\u0442\u043d\u043e \u0432\u0441\u0435 \u043f\u0440\u043e\u0449\u0435 \u043d\u0435\u043a\u0443\u0434\u0430.. \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434 \u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043a\u043e\u0431\u043a\u0443)))<\/p>\n<pre class=\"lang:default decode:true\">    public int solution(int[] s) {\n        int max_sum = 0;\n        int current_sum = 0;\n        boolean positive = false;\n        int n = s.length;\n        for (int i = 0; i &lt; n; ++i) {\n            int item = s[i];\n            if (item &lt; 0) {\n                if (max_sum &lt; current_sum) {\n                    max_sum = current_sum;\n                    current_sum = 0;\n                }\n            } else {\n                positive = true;\n                current_sum += item;\n            }\n        }\n        if (current_sum &gt; max_sum) {\n            max_sum = current_sum;\n        }\n        if (positive) {\n            return max_sum;\n        }\n        return -1;\n    }<\/pre>\n<h1>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h1>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c \u043a\u0430\u043a \u0431\u044b \u0442\u0430\u043c \u043d\u0438 \u0431\u044b\u043b\u043e \u0441\u0447\u0438\u0442\u0430\u044e \u0447\u0442\u043e \u0442\u0435\u0441\u0442\u044b \u044f \u0437\u0430\u0432\u0430\u043b\u0438\u043b, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043a\u0430\u0441\u0442\u043e\u043c\u0435\u0440 \u0435\u0449\u0435 \u0438 \u043e\u0434\u0443\u043c\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u044f \u0431\u044b \u0441\u0435\u0431\u044f \u043d\u0435 \u0432\u0437\u044f\u043b)))) \u0422\u0430\u043a \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438 \u0438 \u043d\u0435 \u043b\u0435\u0437\u0442\u044c \u0432 &#171;\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0431\u0438\u0437\u043d\u0435\u0441&#187; \ud83d\ude09<\/p>\n<p>\u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u043f\u0443\u043d\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u0442\u044f\u043d\u0443\u0432\u0448\u0435\u0433\u043e\u0441\u044f \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u043e \u044d\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u043c\u0438\u043d\u0443\u0441. \u0415\u0441\u043b\u0438 \u0431\u044b \u043d\u0435 \u043f\u0430\u0442\u0440\u0438\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043d\u0430\u043a\u043b\u043e\u043d\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u0432\u043d\u043e \u0431\u044b \u0443\u0448\u0435\u043b \u043a\u0430\u043a \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u043b \u043c\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u0433\u0430 \u0415\u0432\u0433\u0435\u043d\u0438\u0439 \u0432 \u041a\u0438\u0435\u0432, \u0434\u0430 \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044c.. \u0432\u0441\u0435 \u0434\u0435\u043b\u043e \u0432 \u043d\u0435 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043a\u0443\u0434\u0430-\u0442\u043e \u0435\u0445\u0430\u0442\u044c \ud83d\ude42 \u0422\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u043f\u043b\u044e\u0441 HR \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 =)<\/p>\n<p>\u041d\u0443 \u0430 \u044f \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443\u00a0\u043e\u0433\u043e\u0432\u043e\u0440\u0435\u043d\u043d\u043e\u043c\u0443 \u0432 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e.<\/p>\n<p>P.S. \u0412\u044b \u043d\u0435 \u043f\u043e\u0432\u0435\u0440\u0438\u0442\u0435, \u043d\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u0435\u043b \u043e\u0444\u0444\u0435\u0440 \u043e_0, \u00a0\u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0432 \u0414\u043d\u0435\u043f\u0440\u043e\u043f\u0435\u0442\u0440\u043e\u0432\u0441\u043a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0415\u0449\u0435 \u0434\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0433\u043e\u0434\u0430 \u044f \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u043b\u0441\u044f \u0443\u0435\u0445\u0430\u0442\u044c \u0438\u0437 \u041a\u0440\u044b\u043c\u0430 \u0432 \u0414\u043d\u0435\u043f\u0440\u043e\u043f\u0435\u0442\u0440\u043e\u0432\u0441\u043a \u0438 \u0441 \u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u043c\u043e\u0435 \u0441\u0430\u043c\u043e\u0435 \u0437\u0430\u0442\u044f\u043d\u0443\u0442\u043e\u0435 \u0442\u0440\u0443\u0434\u043e\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443. \u0420\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0447\u0442\u043e \u0437\u0430 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u044f \u043d\u0435 \u0441\u0442\u0430\u043d\u0443, \u043d\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u043e \u043e\u0433\u043e\u0432\u043e\u0440\u044e\u0441\u044c \u0447\u0442\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0439 \u043d\u0430 RCP \u0438 Swing. \u0418\u0441\u0442\u043e\u043a\u0438 \u041d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u0441 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0435\u0449\u0435 \u0437\u0430 \u043f\u0430\u0440\u0443 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0434\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0433\u043e\u0434\u0430 \u043c\u043d\u0435 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0438 &hellip; <a href=\"https:\/\/leodev.ru\/blog\/news\/programmer-interview\/\" class=\"more-link\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435<span class=\"screen-reader-text\"> \u00ab\u0421\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u0438\u043b\u0438 60+ \u0434\u043d\u0435\u0439 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f\u00bb<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":131,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[31,30,29],"class_list":["post-127","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-interview","tag-30","tag-29"],"_links":{"self":[{"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/posts\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":10,"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":935,"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/posts\/127\/revisions\/935"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/media\/131"}],"wp:attachment":[{"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leodev.ru\/blog\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}