Java questions and answers
The JVM, collections, Spring and build tooling. Page 7 of 20.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 361-420
- com.jcraft.jsch.JSchException UnknownHostKey
- Command line progress bar in Java
- Common algorithm for generating a diff of the fields in two beans?
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException Communications link failure
- Compare every item to every other item in ArrayList
- Compare if BigDecimal is greater than zero
- Compare Protocol in Swift vs Interface in Java
- Compare strings in java and remove the part of string where they are identical
- Compare two objects in Java with possible null values
- Comparing arrays in JUnit assertions, concise built-in way?
- Comparing strings with which are declared final in Java
- Comparing two java.util.Dates to see if they are in the same day
- Compilation error after upgrading to JDK 21 - NoSuchFieldError JCImport does not have member field JCTree qualid
- Compile error Class file has wrong version 52.0, should be 50.0
- CompletableFuture in loop How to collect all responses and handle errors
- CompletableFuture not working as expected
- CompletableFuture thenApply vs thenCompose
- CompletableFuture vs Async
- CompletableFuture vs Spring Transactions
- CompletableFutureT class join vs get
- Computational Complexity of TreeSet methods in Java
- Concatenating null strings in Java
- concatenating two int in java
- Concept of promises in Java
- Concurrent JUnit testing
- ConcurrentHashMap read and write locks
- ConcurrentHashMap vs Synchronized HashMap
- ConcurrentModificationException - Lamport distributed system
- Condition vs wait notify mechanism
- Conditionally ignoring tests in JUnit 4
- Configuration on demand is not supported by the current version of the Android Gradle plugin
- Configuration using the @SpringBootApplication annotation
- ConfigurationProperties default values in a bound class
- ConfigurationProperties does not bind properties
- ConfigurationProperties prefix not working
- ConfigurationProperties Spring Boot Configuration Annotation Processor not found in classpath
- ConfigurationProperties vs PropertySource vs Value
- Configure a new serializer for spring-boot redis cache config
- Configure active profile in SpringBoot via Maven
- Configure DataSource programmatically in Spring Boot
- Configure logback using several profiles
- Configure MockBean component before application start
- Configure specific in memory database for testing purpose in Spring
- Configure Spring Boot with two ports
- Configure ViewResolver with Spring Boot and annotations gives No mapping found for HTTP request with URI error
- Configuring base package for component scan in Spring boot test
- Configuring ConnectionFactory for RabbitMQ in Spring Boot AMQP
- Configuring IntelliJ IDEA for unit testing with JUnit
- Configuring Log4j Loggers Programmatically
- Configuring RequestContextListener in SpringBoot
- Confluent Cloud - Spring Boot Consumer REST Endpoint?
- Confused, are languages like python, ruby single threaded? unlike say java? for web apps
- Confusion @NotNull vs. @Column(nullable = false) with JPA and Hibernate
- Connect Java to a MySQL database
- Connecting to multiple database in spring boot
- Connection Java - MySQL Public Key Retrieval is not allowed
- Connection to Db dies after 424 in spring-boot jpa hibernate
- ConnectionTimeout versus SocketTimeout
- Consider defining a bean of type in your configuration
- Consider defining a bean of type 'org.springframework.security.authentication.AuthenticationManager' in your configuration
System design interview problems on Java
- Design an API Rate Limiter: solution and walkthrough
- Design a Distributed Messaging System: solution and walkthrough
- Design an Online Payment Service: solution and walkthrough
- Design a Key Value Store: solution and walkthrough
- Design a Task Scheduler: solution and walkthrough

Course
Intermediate
27 lessons
14 hours
OOD Fundamentals
Master object-oriented design from first principles, SOLID, design patterns, and classic interview problems with hands-on coding.
View the course