This is probably often asked at interviews. But the question is incomplete.
Most answers on the internet are incomplete and some are even plain wrong. I’ll try to list all differences.
Continue reading == versus equals()
This has been answered a million times (I get a million results on google). But my answer is the most bestest! Continue reading Why is String immutable?
No, it’s not. In reflection both extend
Constructor does not extend
Method. It is a common misconception that constructors are methods and often asked about at job interviews.
Continue reading Is a Construtor a Method?
This is often asked at interviews. I’ll explain when to answer “yes” and when to answer “no”.
Continue reading Is Java object-oriented?