Java questions and answers
The JVM, collections, Spring and build tooling. Page 10 of 20.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 541-600
- Default interface methods are only supported starting with Android 7.0 Nougat
- Default logging file for spring boot application
- Default maximumPoolSize for HikariCP
- Default value of 'boolean' and 'Boolean' in Java
- Delete directories recursively in Java
- Delete files, directories and buckets in amazon s3 java
- Dependency 'org.springframework.bootspring-boot-starter-web2.3.0.RELEASE' not found
- Deploying Java webapp to Tomcat 8 running in Docker container
- Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0
- Deprecated Java HttpClient - How hard can it be?
- Deserialization of JavaScript array to Java LinkedHashSet using Jackson and Spring doesn't remove duplicates
- Deserialize a json array to objects using Jackson and WebClient
- Deserialize a List<T> object with Gson?
- Deserialize Java 8 LocalDateTime with JacksonMapper
- Deserializing different JSON payload from same Kafka topic with Spring Kafka
- Determine if a String is an Integer in Java
- Determine which JAR file a class is from
- Developing for Android in Eclipse R.java not regenerating
- Developing spring boot application with lower footprint
- Difference between _JAVA_OPTIONS, JAVA_TOOL_OPTIONS and JAVA_OPTS
- Difference between <? super T> and <? extends T> in Java
- Difference between applicationContext.xml and spring-servlet.xml in Spring Framework
- Difference between @Before, @BeforeClass, @BeforeEach and @BeforeAll
- Difference between Codahale metrics and Dropwizard metrics
- Difference between CompletableFuture, Future and RxJava''s Observable
- Difference between <contextannotation-config> and <contextcomponent-scan>
- Difference between Controller and RouterFunction in Spring 5 WebFlux
- Difference between DeferedResult and CompletableFeature
- Difference between DTO, VO, POJO, JavaBeans?
- Difference between EntityScan and ComponentScan
- Difference between FetchType LAZY and EAGER in Java Persistence API?
- Difference between File.separator and slash in paths
- Difference between final and effectively final
- Difference between final static and static final
- Difference between findBy and findOneBy in Spring data JPA
- Difference between getAttribute() and getParameter()
- Difference between group id, Client id and id in KafkaListener Spring Boot
- Difference between HashMap, LinkedHashMap and TreeMap
- Difference between HashSet and HashMap?
- Difference between int[] array and int array[]
- Difference between Interceptor and Filter in Spring MVC
- Difference between jar and war in Java
- Difference between java.lang.RuntimeException and java.lang.Exception
- Difference between java.util.Random and java.security.SecureRandom
- Difference between JVM and HotSpot?
- Difference between List, List?, ListT, ListE, and ListObject
- Difference between matches() and find() in Java Regex
- Difference between @Mock and @InjectMocks
- Difference between @Mock, @MockBean and Mockito.mock()
- Difference between null and empty Java String
- Difference between on-heap and off-heap
- Difference between OneToMany and ElementCollection?
- Difference between OpenJDK and Adoptium/AdoptOpenJDK
- Difference between Optional.orElse() and Optional.orElseGet()
- Difference between parseInt() and valueOf() in Java?
- Difference between path and value attributes in RequestMapping annotation
- Difference between RibbonClient and LoadBalanced
- Difference between Role and GrantedAuthority in Spring Security
- Difference between save and saveAndFlush in Spring data jpa
- Difference between singlecache, multicache and assigncache with respect to spring memcached annotations
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