Java questions and answers
The JVM, collections, Spring and build tooling. Page 11 of 20.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 601-660
- Difference between spring-bootrepackage and mvn package
- Difference between spring-data-jpa and spring-boot-starter-data-jpa
- Difference between Spring boot 2.5.0 generated jar and -plain.jar?
- Difference between spring @Controller and @RestController annotation
- DIfference between Spring Kafka and Spring Integration Kafka
- Difference between Spring Kafka lib and native Kafka Java API
- Difference between Spring MVC and Spring Boot
- Difference between Statement and PreparedStatement
- Difference between Static and final?
- Difference between String replace() and replaceAll()
- Difference between String trim and strip methods
- Difference between Stringequals and StringcontentEquals methods
- Difference between the annotations GetMapping and RequestMappingmethod RequestMethod.GET
- Difference between thenAccept and thenApply
- Difference between thread's context class loader and normal classloader
- Difference between 'throw' and 'throw new Exception
- Difference between using MockMvc with SpringBootTest and Using WebMvcTest
- Difference between using Throwable and Exception in a try catch
- Difference between Valid and Validated in Spring
- Difference between volatile and synchronized in Java
- Difference between WAIT and BLOCKED thread states
- Difference between "wait()" vs "sleep()" in Java
- Difference in System. exit(0) , System.exit(-1), System.exit(1 ) in Java
- Difference of HashMap in alt-rt.jar and rt.jar?
- differences between 2 JUnit Assert classes
- Differences between Ant and Maven
- Differences between dependencyManagement and dependencies in Maven
- Differences between Exception and Error
- Differences between jar and war in Spring Boot?
- Differences between Java 8 Date Time API (java.time) and Joda-Time
- Differences between MSIL and Java bytecode?
- Differences between Oracle JDK and OpenJDK
- Different results with Java's digest versus external utilities
- Different ways of loading a file as an InputStream
- Dijkstra algorithm for 2D array in Java
- Directed Graph Processing in Java
- Disable a particular Checkstyle rule for a particular line of code?
- Disable all Database related auto configuration in Spring Boot
- Disable Basic Authentication while using Spring Security Java configuration
- Disable Cloudformation in Spring Cloud AWS
- Disable IntelliJ Starred Package Imports?
- Disable Logback in SpringBoot
- Disable redis when many timeouts using spring boot
- Disable security for unit tests with spring boot
- Disable spring boot actuator endpoints java config
- Disable Spring Security config class for WebMvcTest in Spring Boot
- Disable SSL as a protocol in HttpsURLConnection
- Disabling Kafka Listeners for a particular Spring Boot test
- disabling spring security in spring boot app
- Disconnect client session from Spring websocket stomp server
- DispatcherServlet and web.xml in Spring Boot
- display application version in title using thymeleaf and springboot
- Display the current time and date in an Android application
- Distribute subscribers across JVMs
- Distribute using EJBs or replicate?
- Distributed Cache Jar in classpath but getting ClassNotFoundException
- Distributed Java Application with RestFul
- Distributed search system JAVA
- DistributedCache - third party jar not found
- Distributing events across different JVMs with Axon Server to Subscribing Event Processors (without Event Sourcing)
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