anton-liauchuk / Java Interview
Licence: mit
At the beginning, it was the repository with questions from Java interviews. Currently, it's more like knowledge base with useful links.
Stars: ✭ 114
Programming Languages
java
68154 projects - #9 most used programming language
Labels
Projects that are alternatives of or similar to Java Interview
Digital Restaurant
DDD. Event sourcing. CQRS. REST. Modular. Microservices. Kotlin. Spring. Axon platform. Apache Kafka. RabbitMQ
Stars: ✭ 222 (+94.74%)
Mutual labels: rest, microservices, spring-boot, rabbitmq, ddd
Interviews
A list of fancy questions I've been asked during the interviews I had. Some of them I ask when interviewing people.
Stars: ✭ 140 (+22.81%)
Mutual labels: rest, microservices, concurrency, interview, ddd
Angularjs Springmvc Sample Boot
A RESTful sample using Spring Boot, Spring MVC, Spring Data and Angular/Bootstrap.
Stars: ✭ 309 (+171.05%)
Mutual labels: rest, hibernate, spring-boot, spring
Javastud
Official, Main: This is Core/Advance java example series project. It help to learn java step by step using pdf tutorial provided here and corresponding demo project for the eclipse. Tag: Java Student, Java Stud, Stud Java, StudJava, Java Teachers, Studs Quick Start Guide, Studs Java, Object Oriented Programming, Core Java, Java SE, Java EE, Java Enterprise Edition, Java Blog, Java Articles, Java Web, JSP, Servlet, Maven, Spring, Hibernate, Spring-boot, Spring MVC Web, Angular JS, Angular 2, Java Security, Java CRUD, Java Login Example, File Handling, Multi threading, exception handling, Collection classes, Swing, Database, Date Time, Joda Time, JPA.
Stars: ✭ 220 (+92.98%)
Mutual labels: hibernate, spring-boot, spring, servlet
Quickperf
QuickPerf is a testing library for Java to quickly evaluate and improve some performance-related properties
Stars: ✭ 231 (+102.63%)
Mutual labels: microservices, hibernate, spring-boot, spring
Spring Boot Postgresql Jpa Hibernate Rest Api Demo
Building RESTful APIs with Spring Boot, PostgreSQL, JPA and Hibernate
Stars: ✭ 209 (+83.33%)
Mutual labels: rest, hibernate, spring-boot, spring
Gemini
Model Driven REST framework to automatically generate CRUD APIs
Stars: ✭ 138 (+21.05%)
Mutual labels: rest, microservices, spring-boot, spring
Atom
Java course materials
Stars: ✭ 293 (+157.02%)
Mutual labels: concurrency, hibernate, spring-boot, spring
Micro Server
Microserver is a Java 8 native, zero configuration, standards based, battle hardened library to run Java Rest Microservices via a standard Java main class. Supporting pure Microservice or Micro-monolith styles.
Stars: ✭ 929 (+714.91%)
Mutual labels: rest, microservices, spring-boot, spring
Okta Blog Archive
Okta Developer Blog
Stars: ✭ 74 (-35.09%)
Mutual labels: microservices, spring-boot, spring
Spring Cloud Sleuth
Distributed tracing for spring cloud
Stars: ✭ 1,531 (+1242.98%)
Mutual labels: microservices, spring-boot, spring
Curso Sistemas Web Com Spring Javascript Bootstrap
Stars: ✭ 74 (-35.09%)
Mutual labels: hibernate, spring-boot, spring
Mini Platform
Mini-Platform致力于更简洁易用的轻量级微服务治理平台。
Stars: ✭ 45 (-60.53%)
Mutual labels: microservices, spring-boot, spring
Spring Boot Examples
🥗 Spring/SpringBoot/SpringCloud 实践学习案例,从入门到精通,持续更新中,欢迎交流学习🍺 !
Stars: ✭ 110 (-3.51%)
Mutual labels: spring-boot, spring, rabbitmq
Dynamic Data Source Demo
基于事务的读写分离
Stars: ✭ 43 (-62.28%)
Mutual labels: transaction, spring-boot, spring
Hex Arch Kotlin Spring Boot
Reference JVM multi module project for a reactive micro service and lambda using a hexagonal architecture, DDD, Kotlin, Spring Boot, Quarkus, Lambda, Gradle.
Stars: ✭ 83 (-27.19%)
Mutual labels: spring-boot, spring, ddd
Mall
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
Stars: ✭ 54,797 (+47967.54%)
Mutual labels: spring-boot, spring, rabbitmq
Jdonframework
Domain-Driven-Design Pub/Sub Domain-Events framework
Stars: ✭ 978 (+757.89%)
Mutual labels: microservices, concurrency, transaction
About project
At the beginning, it was the repository with questions from Java interviews. Currently, it's more like knowledge base with useful links.
Table of Contents
- Core
- Collections
- Concurrency
- Spring
- Servlet
- Hibernate
- Git
- Maven
- Gradle
- Microservices
- JavaScript
- Linux
- Patterns
- DDD
- Architecture
- REST
- SQL
- Test
- Transactions
- RabbitMQ
Core
- What's new in Java 8?
- What are the memory types in Java?
- What is java agent?
- Possible Performance Tools for Java?
- What is java profiler?
- What is stop the world?
- What is the difference between int, Integer and AtomicInteger?
- How i++ will work for Integer?
- What can you say about interface constants?
- What is the contract between equals and hashcode?
- What are the rules for overriding equals/hashcode methods?
- Are the same fields needed for equals/hashcode implementation?
- What are the purposes of inner classes?
- What is better interfaces or abstract classes?
- Do inner classes have access to private fields from outer class?
- What are the differences between static nested classes and non-static nested classes?
- What are the methods of Object class?
- What is Jmeter?
- Possible Ways to Capture Java Heap Dumps?
- What is the result of this code:
- Are checked exceptions bad?
- How var in Java 10 can be used?
- What is functional interface?
- Functional interfaces vs abstract classes?
- Why getters/setters?
- Serialization?
- Deserialization after changes in class? Possible issues?
- What is the difference between cohesion and coupling?
- @Override annotation?
- Java modifiers?
- Exception Hierarchy?
- One exception is thrown by catch block and another one is thrown from finally block, which exception will be thrown by method?
- Is it possible to serialize lambda expression?
- Why can Java Collections not directly store Primitives types?
- How is recursion implemented in Java?
- Is it needed to document unchecked exceptions?
- Java Date classes?
- Why Do Local Variables Used in Lambdas Have to Be Final or Effectively Final?
- orElse() vs orElseGet() in Optional?
- How to filter list of objects using Stream API without .filter()?
- What is String Pool? How do Strings get there?
- What is the difference between StringBuilder and StringBuffer?
- Difference between <? super T> and <? extends T> ?
- How does JIT compiler work?
- Mutable vs Immutable object?
- Provide some examples when a finally block won't be executed in Java?
Collections
- What is the complexity for get in Hashmap?
- What is the complexity for get in Hashmap for keys with hashcode = 1?
- What is the hierarchy of collections?
- What is the difference between LinkedList and ArrayList?
- What is better to use LinkedList or ArrayList?
- What is the implementation of HashMap?
- What are the implementations of Map?
- What is the complexity of removing the last element from LinkedList?
- What are the differences between Set and Map?
- Possible maps in concurrency?
- What is the main difference between Stream API and Collection?
- What should be avoided in parallel stream?
- Implement custom version of java.util.stream.Stream with filter/map methods
- What is forEach?
- When is it better to use foreach loop instead of Iterable.forEach()?
- SplitIterator?
Concurrency
- What is usage of wait/notify methods?
- Where wait() can be used?
- What is the keyword synchronized?
- What is the keyword volatile?
- How volatile is related to happens before?
- What are the concurrent collections?
- What is CopyOnWriteArrayList?
- What can you say about ConcurrentHashMap?
- What are the benefits of using ConcurrentHashMap over HashTable?
- What is the synchronized access?
- What is the monitor for non-static synchronized method?
- What are possible ways for synchronization threads?
- How to wait for finish of thread?
- What is the result of this code?
- Change the code for getting deadlock
- What is the Difference between Future and CompletableFuture?
Spring
- How make spring service thread-safe?
- What is bean?
- How bean gets into the container?
- What are the possible bean scopes?
- What is the difference @Service between @Component?
- What is the difference between @Service and @Bean
- How to call a method after bean initialization?
- What is the default scope?
- What is the prototype scope?
- What are the possible ways of Dependency Injection?
- Where better to use dependency injection via constructor? Where via setter?
- How to catch the exceptions for controllers?
- What is the difference between BeanFactory and FactoryBean?
- What is the difference Spring and Spring Boot?
- How to add own auto-configurations?
- Where can be stored the list of auto-configurations in META-INF?
- What are the possible ways of configurations in Spring?
- What is the lookup method?
- What is declarative transaction in Spring?
- What creates a proxy?
- Does @transactional method work in the case of execution in the same class?
- What is environment?
- How does auto-configuration work?
- What is the difference between @Resource and @Autowired annotations?
- What is the feature in Spring Boot for setting up the dependencies?
- Where does Spring Boot application begin?
- What is the difference between @Controller and @RestController annotations?
- Does @Qualifier annotation can work only with bean name from @Component annotation?
- Is it required to put @Repository annotation in the case of extending JpaRepository?
- How ResponseEntity can be used?
- Does entity from @Transactional method can be updated without executing save method?
- Is it possible to have only one transaction in the case of executing several @Transactional methods?
- Anti-patterns of bean validation?
- Is it good practice to define interface for Spring bean?
- How does @Transactional annotation work?
- How to use @NamedEntityGraph with Spring Data JPA?
Servlet
- What is servlet?
- What is difference between parameters and attributes?
- What is the life cycle of servlet?
- What is the servlet mapping?
Hibernate
- What is detached entity?
- What is the use of flush?
- What are the cache levels?
- What is the first-level cache?
- Hibernate inheritance?
- Common hibernate mistakes?
- Hibernate best practice?
- How to Define and Use a @NamedEntityGraph?
- Possible issues with defining equals/hashcode on JPA entities?
- How lazy loading works in hibernate?
- Optimal queries in Hibernate?
- Possible enum mapping solutions?
- In which cases LazyInitializationException can occur?
- There are three SQL statements in one transaction, during the first one exception occurred on DB level, what will happen with others if you catch the first one?
Git
- What is the difference between merge and rebase?
- What is git reset?
- What is the difference between soft reset and hard reset?
- How to combine multiple commits into one prior to push?
Maven
- What is the difference between Maven and Gradle?
- How will work Maven in the case of multiple version of the same dependency?
- What is the dependency management in Maven?
- Does maven support inheritance for pom files?
Gradle
Microservices
- What are the possible ways for communication between microservices?
- What is exchange in message queue?
- What are the benefits of microservices?
- What are the disadvantages of microservices?
- What are the possible issues in microservices
- What are the possible solutions for the case when one service is not available?
- What is the difference between synchronous and asynchronous communication?
- What are possible ways for implementing authentication in microservices?
- What is Eventual consistency?
- How different types of communication can influence on performance?
JavaScript
- What are possible variable scopes?
- What is bind? call & apply?
- What is losing of context in js?
- Is Javascript single threaded?
- What is closure in js?
- How to check if element exists in html?
- 2 functions with the same name but with different number of parameters. Can be the issues in this case?
Linux
Patterns
- Which architectural patterns you know?
- What does it mean single responsibility?
- What is the difference between facade and proxy/gateway?
- What can we do in the case of constructor with big number of parameters?
- How can be implemented builder?
- What is pattern Visitor?
- What is the issue can be solved by visitor?
- What can you say about pattern observer?
- How to initialize object depends on type?
- Why Dependency Injection is needed?
- Should services always return dtos?
- The difference between adapter and decorator?
DDD
- What is DDD?
- Why DDD is needed?
- What is aggregate in DDD?
- What is anemic domain model?
- What is the correct way for having relations between aggregates?
- How to update several aggregates during one transaction?
- What is event storming?
- How domain events are related to eventual consistency?
- What is the difference between domain events and event sourcing?
- What is CQRS?
- What is the best practice for validation in DDD?
- What is the best practice for Value Object?
- Possible issues with using domain model with public getters/setters and empty constructor?
- How to work with large domain models? Is it correct to have a lot of fields in domain model?
- How should be published integration events? Inside or outside transaction?
- How to define the reference between aggregates?
- Where to put validation rule for value object?
- Possible integration ways between modules?
Architecture
- What are the differences between monolith and microservices? (Performance/Deployability/Failure impact and etc)
- Imperative vs functional vs reactive programming?
- What is Serverless
- What is the difference between native code, machine code and assembly code?
REST
- What is rest architecture? What are the requirements?
- Is there state in rest architecture?
- Can be used query params in rest architecture?
- What is the difference get and post?
- What is the difference between soap and rest?
- Is it correct to update something during get request?
- Is it possible to use body in get requests?
- What are possible types of requests for http protocol?
- Why method options is needed?
- What is the difference between put and post?
- What can be used as rest client?
- How http protocol work?
- What are the possible solutions in the case of big number of parameters for search method?
- What should be the response in the case of DELETE request?
- What is the best solution for representing Enum in API?
- What is the best practice for getting Unique Resource From Sub-Collection?
- How search in sub-collections can be implemented?
- What is the best practice for nested resources?
- Fine Grained CRUD Resources vs. Coarse Grained Resources?
- Best guidelines?
- Best practice for PATCH?
- Do sessions violate REST?
- When to use GraphQL?
- What is ElasticSearch?
- What are the possible ways of versioning?
SQL
- What is having in sql?
- What are the possible issues with indexes?
- Sql works very slowly, what are the possible improvements (the database is MySQL, for example)?
- NoSQL vs SQL Databases
Test
- What is the difference between integration and unit tests?
- Unit test executes code from 2 classes, is it correct? Is it unit or integration test?
- What can be used for unit tests?
- What is better to use randomized or hardcode data for unit tests?
- Is it possible to test the architecture of application?
- Does TDD include integration tests?
- Is it good practice to check in tests that non-state-changing methods were called?
- The differences between Spy and Mock in Mockito?
- Is it good practice to use in-memory db for tests?
- Mockito: doReturn vs thenReturn?
Transactions
- What is transaction?
- What are the requirements for transactions?
- What is a distributed transaction?
- What are isolation levels?
- What are the possible issues in the case of parallel access by transactions?
- What are possible options for implementing transactions in microservices
- What is the difference between optimistic and pessimistic locking?
- Is it possible to use transaction for select statements?
RabbitMQ
- What is RabbitMQ?
- What are the advantages/disadvantages of using message brokers?
- What is the Exchange in RabbitMQ?
GraalVM
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].