Java questions and answers
The JVM, collections, Spring and build tooling. Page 17 of 20.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 961-1020
- HashMap - contains and get methods should not be used together
- HashMap - getting First Key value
- HashMap get/put complexity
- HashMap Space Complexity
- HashMap to return default value for non-found keys?
- HashMap with multiple values under the same key
- HashSet that preserves ordering
- HashSet vs LinkedHashSet
- Hazelcast - OperationTimeoutException
- Hazelcast spring configuration
- Hibernate - A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance
- Hibernate - Batch update returned unexpected row count from update 0 actual row count 0 expected 1
- Hibernate 4.1.9 latest final build reporting nested transactions not supported
- Hibernate 6.1.5.Final unable to determine table reference
- Hibernate embeddables component property not found
- Hibernate Envers with Spring Boot - configuration
- Hibernate field naming issue with Spring Boot naming strategy
- Hibernate hbm2ddl.auto=update in production?
- Hibernate JPA Sequence non-Id
- Hibernate SessionFactory vs. JPA EntityManagerFactory
- Hibernate show real SQL
- Hibernate throws MultipleBagFetchException - cannot simultaneously fetch multiple bags
- Hidden Features of Java
- HikariCP - connection is not available
- Horner's recursive algorithm for fractional part - Java
- Hot swapping in Spring Boot
- How a thread should close itself in Java?
- How and where are Annotations used in Java?
- How are anonymous inner classes used in Java?
- How are calls to static members of another class handled in Java Object Serialization?
- How are mvn clean package and mvn clean install different?
- How are Spring Data repositories actually implemented?
- How can a Java program get its own process ID?
- How can create a producer using Spring Cloud Kafka Stream 3.1
- How can I access a folder inside of a resource folder from inside my jar File?
- How can I access getSupportFragmentManager in a fragment?
- How can I access static class variables within methods?
- How can I add a filter class in Spring Boot?
- How can I add business days to the current date in Java?
- How can I add to List? extends Number data structures?
- How can I clear or empty a StringBuilder?
- How can I combine two HashMap objects containing the same types?
- How can I concatenate two arrays in Java?
- How can I configure encoding in Maven?
- How can I configure Logback to log different levels for a logger to different destinations?
- How can I configure the heap size when starting a Spring Boot application with embedded Tomcat?
- How can I convert a byte array to hexadecimal in Java?
- How can I convert a long to int in Java?
- How can I convert byte size into a human-readable format in Java?
- How can I convert int to Integer in Java?
- How can I convert JSON to a HashMap using Gson?
- How can I convert List<Integer> to int[] in Java?
- How can I convert my Java program to an .exe file?
- How can I create a generic array in Java?
- How can I create a Java 8 LocalDate from a long Epoch time in Milliseconds?
- How can I create an Array of ArrayLists?
- How can I create many kafka topics during spring-boot application start up?
- How can I create multiple servers with Java RMI?
- How can I determine what core a Java thread is running on?
- How can I determine whether a Java class is abstract by reflection
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