How does Java handle private methods being passed as Runnables to a separate service class in a Spring Boot application?
Advertisements I have a Spring Boot test class where I’ve defined a private method. I also have a helper Service class which has a simple method that accepts a Runnable and executes it. My expectation was that the private method from the test class could not be passed and run as a Runnable in the… Read More How does Java handle private methods being passed as Runnables to a separate service class in a Spring Boot application?