17 Nov 2020 - MadJFish/Interview-Questions GitHub Wiki
Core
- Could you run the java program without main method?
Multi-threading
- What are the state of threads?
- What is executorService?
Java Collections
- What is the structure of HashMap?
Coding
- Given a number, we can only add 2 or minus 2 for each step, get the number of steps to change the number to the closest perfect square.
Java 8
- What are the differences between Predicate and Function?
- Why stream is considered as lazy initialization?
Spring
- Class A and Class B are implementing interface C, we want to use class A in India and use class B in Singapore, how should we configure it?
- How to do configuration between different servers in Spring?
- What are the differences between JpaRepository and CrudRepository?