Java questions and answers
The JVM, collections, Spring and build tooling. Page 5 of 20.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 241-300
- Can a1 a2 a3 evaluate to true in Java?
- Can a constructor in Java be private?
- Can a java lambda have more than 1 parameter?
- Can a spring boot RestController be enabled/disabled using properties?
- Can an abstract class have a constructor?
- Can an int be null in Java?
- Can an interface extend multiple interfaces in Java?
- Can constructors throw exceptions in Java?
- Can enums be subclassed to add new elements?
- Can I add jars to Maven 2 build classpath without installing them?
- Can I catch multiple Java exceptions in the same catch clause?
- Can I define System Properties within Spring Boot configuration files?
- Can I delete an item using DynamoDB Mapper without loading it first?
- Can I negate a collection of spring profiles?
- Can I pass an array as arguments to a method with variable arguments in Java?
- Can i run my log asynchronously using log4j 1.x with log4j.properties file?
- Can I set a TTL for Cacheable
- Can I set enum start value in Java?
- Can I set null as the default value for a Value in Spring?
- Can I use Class.newInstance() with constructor arguments?
- Can I use Spring WebFlux to implement REST services which get data through Kafka request/response topics?
- Can I use SpringMvc and webflux together?
- Can Java 8 code be compiled to run on Java 7 JVM?
- Can java get the processor current information?
- Can Mockito capture arguments of a method called multiple times?
- Can Mockito stub a method without regard to the argument?
- Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
- Can not set field to com.sun.proxy.Proxy
- Can one do a for each loop in java in reverse order?
- Can overridden methods differ in return type?
- Can someone explain mappedBy in JPA and Hibernate?
- Can Spring Boot application handle multiple requests simultaneously?
- Can Spring Boot be used with OSGi? If not, any plans to have an OSGi Spring Boot?
- Can Spring Boot test classes reuse application context for faster test run?
- Can twisted be implemented in Java?
- Can we instantiate an abstract class?
- Can we make unsigned byte in Java
- Can we use multiple kafka template in spring boot?
- Can you find all classes in a package using reflection?
- Can you use Autowired with static fields?
- Can you write virtual functions / methods in Java?
- cannot access org.springframework.context.ConfigurableApplicationContext class file
- Cannot be cast to class - they are in unnamed module of loader 'app
- Cannot convert from [java.lang.String] to [com.example.demo.User]
- Cannot create a reference to an object with a NULL id mongo hibernate-mongo and spring boot
- Cannot create namespace in multi-document transactionMongoDB 4.0, Spring Data 2.1.0, Spring Boot
- Cannot deserialize value of type java.util.Date from String
- Cannot disable Spring Cloud Config via spring.cloud.config.enabledfalse
- Cannot find MessageMatcherDelegatingAuthorizationManager class while trying to configure websocket security in Spring Boot 3
- Cannot get maven project.version property in a Spring application with Value
- Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
- Cannot invoke org.springframework.web.servlet.mvc.condition.PatternsRequestCondition.getPatterns because this.condition is null
- Cannot load driver class org.h2.Driver in spring boot application
- Cannot refer to a non-final variable inside an inner class defined in a different method
- Cannot resolve method 'antMatchers' in AuthorizationManagerRequestMatcherRegistry
- Cannot resolve symbol 'AppCompatActivity
- Cannot Resolve Symbol SpringBootApplication - IntelliJ DEA
- Can't Autowire Repository annotated interface in Spring Boot
- Cant autowire WebTestClient - no auto configuration
- Can't avoid hibernate logging SQL to console with Spring Boot and Logback
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