Wednesday, December 17, 2025 3 posts

✍️ ningnong
 Factory Method Pattern: The Easiest Guide 1. The Core Concept (The "What") "Define an interface for creating an object, but let subclasses decide which class to instantiate." Think of it ...
Read more →
✍️ ningnong
Side-by-side comparison of Java Abstract Class vs Interface — updated for modern Java (Java 17+). Abstract Class vs Interface in Java Feature Abstract Class Interface ...
Read more →
✍️ ningnong
Java Abstract Class — Summary Definition A class declared with the abstract keyword. Cannot be instantiated directly. Can contain abstract methods (no body) and concrete methods (...
Read more →

Monday, December 15, 2025 2 posts

✍️ ningnong
What is a Wrapper Class in Java? In Java, wrapper classes are object representations of primitive data types. They allow primitive values ( int , double , char , etc.) to be used as object...
Read more →
✍️ ningnong
Java has the provision of "primitive" data types. They are called primitives because they do not have any behavior associated with them. They are just raw data. If you want to run a loop 10 time...
Read more →