Q1: Let’s suppose you have an Optional object. What’s the difference between calling orElseGet and orElse on it? Can you provide a concrete situation when orElseGet is much better?
Q2: Why Java is not 100% considered an object oriented programming language?
Q3: Why in Java is recommended to have methods with maximum 10 lines of code and in C is recommended to not have too many small methods due to stack call overhead? There is no performance issue in Java when you have too many small methods?