Java questions and answers
The JVM, collections, Spring and build tooling. Page 12 of 20.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 661-720
- Do fragments really need an empty constructor?
- Do I have to specify a variable for each identical argument in String.format?
- Do I need to close both FileReader and BufferedReader?
- Do I need to synchronize a call to the interrupt method?
- Do interfaces inherit from Object class in java
- Do Java arrays have a maximum size?
- Do sealed classes really offer performance benefits?
- Do spurious wakeups in Java actually happen?
- Do subclasses inherit private fields?
- Do the parentheses after the type name make a difference with new?
- docker-compose - externalize spring application.properties
- Docker unable to access jar file
- Does a finally block run even if you throw a new Exception?
- Does application.yml support environment variables?
- Does Asynchronous have a Timeout
- Does atomic variables guarantee memory visibility?
- Does Fabric8io K8s java client support patch or rollingupdate using YAML snippets?
- Does HashSet preserve insertion order?
- Does it make sense to do try-finally without catch?
- Does Java allow a volatile read to be optimized away if the value isn''t needed, also removing the happens-before synchronization?
- Does Java Garbage Collect always has to Stop-the-World?
- Does Java have a complete enum for HTTP response codes?
- Does Java have 'Debug' and 'Release' build mode like C?
- Does Java have support for multiline strings?
- Does Java JIT cheat when running JDK code?
- Does Java SE 8 have Pairs or Tuples?
- does kafka have a async request/response java api?
- Does Kafka support java 10 or java 11?
- Does Netty violate the contract of Future.cancel... method?
- Does spring boot support using both properties and yml files at the same time?
- Does Spring Data JPA have any way to count entites using method name resolving?
- Does Spring follow any naming convention for application configuration?
- Does Spring publish beans in thread-safe manner?
- Does Spring @Transactional attribute work on a private method?
- does Spring transactional work with MongoDB?
- Does the Java Memory Model JSR-133 imply that entering a monitor flushes the CPU data caches?
- Does the Java operator apply or ?
- Does the SQL Server JDBC driver support asynchronous operations?
- Does use of final keyword in Java improve the performance?
- Does Weblogic support failover of session objects that are not marked as serializable?
- Double vs. BigDecimal?
- Downcasting in Java
- Downloading a file from spring controllers
- Downloading Java JDK on Linux via wget is shown license page instead
- DROOLS Rule Engine Making network calls within Drools
- Dynamic Queues on RabbitListener Annotation
- Dynamic Topic Name / Quarkus SmallRye Reactive Messaging Kafka
- Dynamically changing the instanceindex with spring cloud stream kafka
- Dynamically creating asynchronous message queues in Java
- Dynamically refresh JTextArea as processing occurs?
- Dynamodb ConditionalCheckFailedException on read / update operation - java sdk
- DynamoDB JsonMarshaller cannot Deserialize List of Object
- DynamoDB mapper and transactions using java SDK
- DynamoDB Mapper annotation for Object which has list of another object
- DynamoDB mapper update only not-null properties
- Easy way to convert Iterable to Collection
- Easy way to write contents of a Java InputStream to an OutputStream
- Eclipse - no Java (JRE) / (JDK) ... no virtual machine
- Eclipse cannot load SWT libraries
- Eclipse Error Could not find or load main class
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