Java questions and answers
The JVM, collections, Spring and build tooling. Page 20 of 20.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 1141-1200
- How do I find where JDK is installed on my windows machine?
- How do I fix a NoSuchMethodError?
- How do I force a Spring Boot JVM into UTC time zone?
- How do I get a class instance of generic type T?
- How do I get a Date without time in Java?
- How do I get my Maven Integration tests to run
- How do I get the file extension of a file in Java?
- How do I get the size of a java.sql.ResultSet?
- How do I handle RabbitMQ Consumer Cancellation Notification when using Spring ChannelAwareMessageListener
- How do I hide .class files from the Open Resource dialog in Eclipse?
- How do i implement Headers Exchange in RabbitMQ using Java?
- How do I implement task prioritization using an ExecutorService in Java 5?
- How do I import the javax.servlet / jakarta.servlet API in my Eclipse project?
- How do I initialize a byte array in Java?
- How do I install Java on Mac OSX allowing version switching?
- How do I instantiate a Queue object in java?
- How do I invoke a Java method when given the method name as a string?
- How do I iterate through the files in a directory and it's sub-directories in Java?
- How do I join two lists in Java?
- How do I load properties from a Kubernetes configmap into my Spring Boot application using Spring Cloud?
- How do I log trace id in Java Spring Async thread
- How do I make a delay in Java?
- How do I make a large number of concurrent HTTPS requests robustly in Clojure /Java
- How do I make my ArrayList Thread-Safe? Another approach to problem in Java?
- How do I make the method return type generic?
- How do I make the return type of a method generic?
- How do I measure time elapsed in Java?
- How do I mock a REST template exchange?
- How do I modify proxy responses using asynchronous servlets?
- How do I monitor the computer''s CPU, memory, and disk usage in Java?
- How do I parse command line arguments in Java?
- How do I pass a class as a parameter in Java?
- How do I prevent the modification of a private field in a class?
- How do I print a double value without scientific notation using Java?
- How do I print my Java object without getting SomeType@2f92e0f4?
- How do I programmatically determine operating system in Java?
- How do I prove that Object.hashCode can produce same hash code for two different objects in Java?
- How do I remove repeated elements from ArrayList?
- How do I resolve ClassNotFoundException?
- How do I resolve the java.net.BindException Address already in use JVM_Bind error?
- How do I retrieve query parameters in a Spring Boot controller?
- How do I reverse an int array in Java?
- How do I run a Java program from the command line on Windows?
- How do I run a spring boot executable jar in a Production environment?
- How do I save a String to a text file using Java?
- How do I set a JLabel's background color?
- How do I set environment variables from Java?
- How do I set the default locale in the JVM?
- How do I set the Hibernate dialect in SpringBoot?
- How do I set the proxy to be used by the JVM
- How do I sort a Set to a List in Java?
- How do I tell Gradle to use specific JDK version?
- How do I tell Maven to use the latest version of a dependency?
- How do I tell Spring Boot which main class to use for the executable jar?
- How do I time a method's execution in Java?
- How do I trim a file extension from a String in Java?
- How do I turn a String into a InputStreamReader in java?
- How do I update an entity using spring-data-jpa?
- How do I update the element at a certain position in an ArrayList?
- How do I use a PriorityQueue?
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