Java questions and answers
The JVM, collections, Spring and build tooling. Page 16 of 20.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 901-960
- getResourceAsStream returns null
- getResourceAsStream vs FileInputStream
- getString Outside of a Context or Activity
- Getting Ambiguous ExceptionHandler method mapped for MethodArgumentNotValidException while startup of spring boot application
- Getting an element from a Set
- Getting Broker may not be available error when spring boot container tries to connect kafka container
- Getting cannot find Symbol in Java project in IntelliJ
- Getting ClassNotFoundException when trying to run simple java rmi
- Getting exclusive system-wide lock in Java
- Getting Gradle dependencies in IntelliJ IDEA using Gradle build
- Getting hold of the outer class object from the inner class object
- Getting Java version at runtime
- Getting java.lang.ClassNotFoundException org.apache.commons.logging.LogFactory exception
- Getting java.lang.IllegalStateException Tried to lookup lag for unknown task 3_0 after upgrading Kafka Stream from 2.5.1 to 2.6.2
- Getting java.nio.file.AccessDeniedException on kafka on Windows
- Getting NoSuchMethodError javax.servlet.ServletContext.addServlet in Spring Boot while running a Spring MVC application
- Getting NullPointerException while connecting with ignite server node
- Getting random numbers in Java
- Getting Spring Application Context
- Getting Spring Boot color console logging working within Intellij?
- Getting the array length of a 2D array in Java
- Getting the class name from a static method in Java
- Getting the Gradle.build version into Spring Boot
- Getting the IP address of the current machine using Java
- Git Ignores and Maven targets
- Given that HashMaps in jdk1.6 and above cause problems with multithreading, how should I fix my code
- Global variables in Java
- Good examples using java.util.logging
- Good Java graph algorithm library?
- Good practice when using kafka with jpa
- Good reasons to prohibit inheritance in Java?
- google-services.json for different productFlavors
- Google Guava vs. Apache Commons
- GoTo Next Iteration in For Loop in java
- Grab a segment of an array in Java without creating a new array on heap
- Gradient Descent Linear Regression in Java
- Gradle - Could not target platform 'Java SE 8' using tool chain 'JDK 7 1.7
- Gradle - Error Could not find method implementation for arguments com.android.supportappcompat-v726.0.0
- Gradle build without tests
- Gradle Could not determine java version from '11.0.2
- Gradle does not find tools.jar
- Gradle DSL method not found 'runProguard
- Gradle Execution failed for task 'processDebugManifest
- Gradle finds wrong JAVA_HOME even though it's correctly set
- Gradle Implementation vs API configuration
- gradle process command java finished with non-zero exit value 1
- Gradle proxy configuration
- Gradle script to autoversion and include the commit hash in Android
- Gradle Version 2.10 is required. Error
- Gson - convert from Json to a typed ArrayListT
- GSON - Date format
- Gson Directly convert String to JsonObject (no POJO)
- Gson How to exclude specific fields from Serialization without annotations
- GSON throwing Expected BEGIN_OBJECT but was BEGIN_ARRAY?
- H2 database console spring boot Load denied by X-Frame-Options
- Hadoop NoClassDefFoundError when adding external Jar
- Handling exceptions from Java ExecutorService tasks
- Handling InterruptedException in Java
- Has been compiled by a more recent version of the Java Runtime class file version 57.0
- `Hash` Set and Array List performances
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