Java questions and answers
The JVM, collections, Spring and build tooling. Page 9 of 20.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 481-540
- Converting Stream to String and back
- Copy a stream to avoid stream has already been operated upon or
- Copying files from one directory to another in Java
- Copying text to the clipboard using Java
- Core pool size vs maximum pool size in ThreadPoolExecutor
- Correct idiom for managing multiple chained resources in try-with-resources block?
- Correct the classpath of your application so that it contains a single, compatible version of org.axonframework.eventsourcing.eventstore.jpa
- Correct use of WebSecurity in WebSecurityConfigurerAdapter
- Correct way of throttling kafka consumer messages in java
- Correct way to add external jars (lib/*.jar) to an IntelliJ IDEA project
- Cors Error when using CorsFilter and spring security
- CORS issue with Spring Boot
- CORS with spring-boot and angularjs not working
- Cost of using final fields
- Could any one tell me the real reason of spring-data projection in my case?
- Could not autowire fieldRestTemplate in Spring boot application
- Could not calculate build plan Plugin org.apache.maven.pluginsmaven-resources-plugin2.5 or one of its dependencies could not be resolved
- Could not find com.google.android.gmsplay-services3.1.59 3.2.25 4.0.30 4.1.32 4.2.40 4.2.42 4.3.23 4.4.52 5.0.77 5.0.89 5.2.08 6.1.11 6.1.71 6.5.87
- Could not find method compile() for arguments Gradle
- Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
- Could not initialize plugin interface org.mockito.plugins.MockMaker
- Could not reserve enough space for object heap
- Could not target platform 'Java SE 11' using tool chain 'JDK 8 1.8
- Could not write JSON Infinite recursion StackOverflowError; nested exception spring boot
- CountDownLatch vs. Semaphore
- Create a custom event in Java
- Create a GUID / UUID in Java
- Create a new instance of component in Spring Boot/Framework
- Create instance of generic type in Java?
- Create instance of generic type whose constructor requires a parameter?
- Create spring repository without entity
- Create the perfect JPA entity
- Create two threads, one display odd other even numbers
- Create zip file from byte
- Creating a logical exclusive or operator in Java
- Creating a topic for Apache Kafka 0.9 Using Java
- Creating an array of objects in Java
- Creating log4j Async logger programmatically
- Creating runnable JAR with Gradle
- Creating training data for a Maxent classfier in Java
- C's equivalent of Java's ? extends Base in generics
- CSRF protection not working with Spring Security 6
- CSV API for Java
- Custom annotation on controller methods to intercept request and validate
- Custom Spring Boot 3 Starter does not create ConfigurationProperties beans
- Custom springboot autoconfiguration not detecting beans
- Custom thread pool in Java 8 parallel stream
- Daemon Threads Explanation
- Database application.yml for Spring boot from applications.properties
- DataSource bean overriding in spring boot 2.1
- Date format in the json output using spring boot
- Dead letter queue (DLQ) for Kafka with spring-kafka
- Dealing with "java.lang.OutOfMemoryError PermGen space" error
- Dealing with Xerces hell in Java/Maven?
- Debugging multiple threads in eclipse
- Decentralized Clustering library for Java
- DecimalFormat.formatdouble in different threads
- Decision tree implementation issue in apache spark with java
- Declaring an unsigned int in Java
- Decode Base64 data in Java
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