1. In Java, all objects are created dynamically by the new operator.
2. All functions and methods must be a part of the class. One cannot declare methods inside the class
and defi ne them outside the class.
3. For declaring a method or fi eld as private, protected or public, each fi eld or method must be
individually tagged with a visibility modifi er.
4. In Java, a protected member cannot be accessed outside the class.
5. In Java, a constructor can act as a function and can return value.
6. The base/root class of all Java classes is the object class.
7. Thethis reference ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.