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
- Calculate date/time difference in java
- Calculate days between two Dates in Java 8
- Calculate size of Object in Java
- Calculating days between two dates with Java
- Calculating the difference between two Java date instances
- Calendar date to yyyy-MM-dd format in java
- Call another rest api from my server in Spring-Boot
- Call child method from parent
- Call one constructor from another
- Callable / Runnable Controller methods What's the point?
- Callback functions in Java
- Calling clojure from java
- Calling Python in Java?
- Calling remove in foreach loop in Java
- 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 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

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