Java questions and answers
The JVM, collections, Spring and build tooling. Page 1 of 20.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 1-60
- -Dlogback.configurationFilelogback.xml ignored when running Spring-Boot
- ''0000-00-00 000000'' can not be represented as java.sql.Timestamp error
- 1.3.7.RELEASE - 1.4.1.RELEASE java.lang.NoSuchMethodError org.springframework.boot.builder.SpringApplicationBuilder.showBanner
- 8080 port already taken issue when trying to redeploy project from Spring Tool Suite IDE
- Create ArrayList from array
- How can I create a memory leak in Java?
- How do I convert a String to an int in Java?
- How do I efficiently iterate over each entry in a Java Map?
- How do I generate random integers within a specific range in Java?
- How do I read / convert an InputStream into a String in Java?
- Java, How to get number of messages in a topic in apache kafka
- What is the difference between public, protected, package-private and private in Java?
- / and / in Java Comments
- (double colon) operator in Java 8
- Plus sign not encoded with RestTemplate using String URL, interpreted as space
- a bean of type 'org.springframework.mail.javamail.JavaMailSender' that could not be found
- A default binder has been requested, but there are no binders available for ''org.springframework.cloud.stream.messaging.DirectWithAttributesChannel''
- A failure occurred while executing com.android.build.gradle.internal.tasks
- A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
- A for-loop to iterate over an enum in Java
- A generic list of anonymous class
- A Java collection of value pairs? (tuples?)
- A KeyValuePair in Java
- A quick and easy way to join array elements with a separator (the opposite of split) in Java
- A simple scenario using wait and notify in java
- About Java Cassandra Client, which one is better? How about CQL?
- About reference to object before object's constructor is finished
- Abstract class in Java
- Accept server's self-signed ssl certificate in Java client
- Access private field of another object in same class
- Access restriction on class due to restriction on required library rt.jar?
- Access restriction The type 'Application' is not API restriction on required library rt.jar
- Accessing a File from Distributed Cache in Pig UDF Java class, Amazon EMR
- Accessing AWS Lambda environment variables in Java code
- Accessing constructor of an anonymous class
- Accessing H2 Console While Running SpringBootTest
- Accessing Kotlin extension functions from Java
- Accessing the application properties in logback.xml
- Acknowledge within @KafkaListener-method without losing messages
- Acknowledgement.acknowledge() throwing exception in spring-kafka @KafkaListener
- ActionListener buttons only works for login or register, not both
- Active threads in ExecutorService
- Activiti Spring Boot Gradle build hangs while gradle clean test
- Add context path to Spring Boot application
- Add context path to Spring Boot application
- Add external library .jar to Spring boot .jar internal /lib
- Add Header Value For Spring TestRestTemplate Integration Test
- Add leading zeroes to number in Java?
- add multiple cross origin urls in spring boot
- Added Springfox Swagger-UI and it''s not working, what am I missing?
- Adding a Pool of Threads in a RxJava Flow
- Adding custom header using Spring Kafka
- Adding header for HttpURLConnection
- Adding header to all request with Retrofit 2
- Adding Lombok plugin to IntelliJ project
- adding multiple entries to a HashMap at once in one statement
- Adding n hours to a date in Java?
- Adding two Java 8 streams, or an extra element to a stream
- Adding up BigDecimals using Streams
- Addition for BigDecimal

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