-
Notifications
You must be signed in to change notification settings - Fork 1
Java Interview Questions
Oleh Shklyar edited this page Feb 11, 2020
·
17 revisions
- Що ви зробили цікавого в минулих проектах, за яку частину відповідали і яких результатів досягли? (в подальшому розвинути тему та питання стосовно вибору рішень та альтернатив)
- ООП: что такое полиморфизм, почему запрещено множественное наследование (Diamond inheritance problem)
- Написать программку, которая принимает строку и возвращает эту строку в инвертированном виде codeshare.io
- Пошук найдовшої підстроки без повторюваних символів
- GC, memory
- Тип данных для денег, в чем проблема
- Collections API
├── Iterable | └── Collection | ├── List | | ├── ArrayList | | ├── LinkedList | | └── CopyOnWriteArrayList | ├── Set | | ├── HashSet | | └── TreeSet | └── Queue | └── ArrayDeque └────────── Map PriorityQueue Stack- ArrayList VS LinkedList
- ArrayList capacity, loadfactor
- HashMap VS TreeMap, Hotspot JVM Set
- Проблема HashMap
- Написать поиск по красно-черному дереву
- Другие коллекции
- Map key null, same key
- ArrayList VS LinkedList
- equals & hashcode
- Default implementations in Hotspot Object,
jvm -XX:hashCode=n (n = 0 .. 5) - Зачем эти методы, какие ограничения
- Default implementations in Hotspot Object,
- Exceptions
Throwable - is this a class or interface ├── Error | ├── OutOfMemoryError | └── IOError └── Exception ├── IOException | └── FileNotFoundException └── RuntimeException | └── NullPointerException └── InterruptedException- try-finally, try-with-resources
- Як обробляти в реальному web проекті?
- Multithreading
- Варианты языковых конструкций, проблемы
- в Spring
- какие методы для управления работы потоков (wait, notify[All]; waitSet and blockeadSet)
- wait vs sleep
- Что такое хороший код
- DRY, WET
- SOLID
- написать самый простой синглтон
- а потокобезпечний
- что такое prototype
- Как сделать, чтоб в разных окружениях проект запустился с разными настройками
- Что такое Spring Boot, зачем
- Как работает Spring Security
- & user - role - permissions
- http методы, коды ответа, заголовки
- что такое куки и сессии
- SOAP, wsdl, xsd, xslt, XPath
- REST, Hypermedia, HATEOAS
- В чем различае json от сериализации
- как сделать https
- dns load balancing
- JMS
- Микросервисная архитектура
-
какие типы join
-
groupBy
-
user - purchase - product
SQL: select * from TableA A left join TableB B on A.key = B.key where B.key is null
-
all members who have recommended another member
SQL: select m1.firstname, m1.surname from cd.members m1 inner join cd.members m2 on m1.memid = m2.recommendedby group by m1.memid
-
We want to alter the price of the second tennis court so that it costs 10% more than the first one.
update cd.facilities set membercost = cd.facilities.membercost * 1.1, guestcost = cd.facilities.guestcost * 1.1 where facid = 1
-
Hibernate : Setting the parameters for multi-variable search
just set all the parameter values to your example object(s) (null values are ignored, so anything that is null will not be included in generated SQL) -
Spring Data: How to add custom method