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 can I specify my .keystore file with Spring Boot and Tomcat?
- How can I start spring boot application in docker with profile?
- How can I tell if I'm running in 64-bit JVM or 32-bit JVM (from within a program)?
- How can I throw checked exceptions from inside Java 8 lambdas/streams?
- How can I turn a List of Lists into a List in Java 8?
- How can I unescape HTML character entities in Java?
- How can I write unit tests for velocity templates?
- How can this Java code be improved to find sub-string in a string?
- How can two threads be in a synchronized method
- How can we configure value.subject.name.strategy for schemas in Spring Cloud Stream Kafka producers, consumers and KStreams?
- How can we prepend strings with StringBuilder?
- How can you display the Maven dependency tree for the plugins in your project?
- How can you escape the character in javadoc?
- How create Kafka ZKStringSerializer in Java?
- How create table with spring data cassandara?
- How do distributed locks work in Spring Data JPA repository level?
- How do I activate a Spring Boot profile when running from IntelliJ?
- How do I add a newline to a TextView in Android?
- How do I address unchecked cast warnings?
- How do I analyze a .hprof file?
- How do I apply the for-each loop to every character in a String?
- How do I assert equality on two classes without an equals method?
- How do I assert my exception message with JUnit Test annotation?
- How do I calculate someone's age in Java?
- How do I change log level in runtime without restarting Spring Boot application
- How do i change logback version in spring boot?
- How do I change the IntelliJ IDEA default JDK?
- How do I check if a file exists in Java?
- How do I check if my EditText fields are empty?
- How do I check if the Java JDK is installed on Mac?
- How do I choose the URL for my Spring Boot webapp?
- How do I clone a generic List in Java?
- How do I Cluster Hibernate ORM Identifiers when using GenerationType.Table
- How do I compare strings in Java?
- How do I configure HikariCP in my Spring Boot app in my application.properties files?
- How do I configure spring-kafka to ignore messages in the wrong format?
- How do I convert a byte array to Base64 in Java?
- How do I convert a Java 8 IntStream to a List?
- How do I convert a Map to List in Java?
- How do I convert a String to an InputStream in Java?
- How do I convert an OutputStream to an InputStream?
- How do I convert CamelCase into human-readable names in Java?
- How do I convert from int to Long in Java?
- How do I convert from int to String?
- How do I convert Long to byte and back in java
- How do I copy an object in Java?
- How do I count the number of occurrences of a char in a String?
- How do I create a unique ID in Java?
- How do I create an immutable Class?
- How do I create beans programmatically in Spring Boot?
- How do I decompile Java class files?
- How do I define a method which takes a lambda as a parameter in Java 8?
- How Do I Document Packages in Java?
- How do I enable index downloads in Eclipse for Maven dependency search?
- How do I exclude all instances of a transitive dependency when using Gradle?
- How do I find out what keystore my JVM is using?
- How do I find the caller of a method using stacktrace or reflection?
- 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?

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