Java questions and answers
The JVM, collections, Spring and build tooling. Page 3 of 20.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 121-180
- Are Android's BroadcastReceivers started in a new thread?
- Are arrays passed by value or passed by reference in Java?
- Are final static variables thread safe in Java?
- Are getCacheFiles() and getLocalCacheFiles() the same?
- Are Java static initializers thread safe?
- Are non-synchronised static methods thread safe if they don't modify static class variables?
- Are static methods inherited in Java?
- Are there any big spring-boot open source projects?
- Are there any cases when it's preferable to use a plain old Thread object instead of one of the newer constructs?
- Are there any Java method ordering conventions?
- Are there any problems with this way of starting an infinite loop in a Spring Boot application?
- Are there best practices for Java package organization?
- Are Thread.sleep0 and Thread.yield statements equivalent?
- Are volatile variable 'reads' as fast as normal reads?
- ArithmeticException Non-terminating decimal expansion; no exact representable decimal result
- Array or List in Java. Which is faster?
- ArrayList initialization equivalent to array initialization
- ArrayList.sort vs PriorityQueue
- Arrays.asList vs Collections.singletonList
- Assert equals between 2 Lists in Junit
- AssertContains on strings in jUnit
- Async API endpoint Spring Webflux
- Async Aspect AfterReturnung. My method has HttpServletRequest object as method argument, but able to access it my aop method
- Async communication between spring boot micro services
- Async not working for method having return type void
- Async not working in Spring API rest with Interfaces
- Async Spring Controllers vs normal Controllers
- Async timeout downloading a large file using StreamingResponseBody on Spring Boot
- AsyncContext response does not match original incoming request?
- Asynchronous event triggers in a distributed system? (java)
- Asynchronous execution in Java EE
- asynchronous function calls in Java
- Asynchronous HTTP client with Netty
- Asynchronous non-blocking remote logging in Java?
- Asynchronous processing using virtual threads and Async annotation
- Asynchronous task within scheduler in Java Spring
- Asynchronously populating a Java Map and returning it as a future
- AsyncResponse ConnectionCallback does not fire in Jersey
- AsyncTask threads never die
- At runtime, find all classes in a Java application that extend a base class
- Atomically incrementing counters stored in ConcurrentHashMap
- Autowired says field injection not recommended
- Avoid performing Spring Async task twice at the same time
- Avoid reporting Broken Pipe errors to Sentry in a Spring Boot application
- Avoid synchronized(this) in Java?
- Avoid synchronizedthis in Java?
- Avro decoding gives java.io.EOFException
- AWS Can not deserialize instance of java.lang.String out of START_OBJECT
- AWS DynamoDB and MapReduce in Java
- AWS DynamoDB Object Persistence Model My class is unsupported, it cannot be instantiated
- AWS Java SDK - AWS authentication requires a valid Date or x-amz-date header
- AWS Java SDK - Unable to find a region via the region provider chain
- AWS Java SDK not finding profile when using AWS SSO
- AWS lambda and Java concurrency
- AWS Lambda NoClassDefFoundError
- AWS Polly Java Client gives error Unable to load region information from any provider in the chain
- AWS S3 Java SDK - Access Denied
- Bad Request - This combination of host and port requires TLS. with Spring Boot
- Base64 Java encode and decode a string
- Basic Distributed Counter using Java Sockets
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