E
- Encapsulation
A concept in object-oriented programming that dictates that the implementation of data and behavior within an object must be hidden, exposing only a public (client-facing) view of the interface, thereby enforcing a contract for acceptable client interaction with the object. Encapsulation of your code increases portability and reuse, and is a very good thing to do. Ways of encapsulating your code include making private variables, with public getX() and setX() methods.
- error
A state from which a program cannot recover. java.lang.Error is a subclass of java.lang.Throwable, and is the parent class of all Java error classes. A runtime error can occur in the following circumstances: when an exception is not caught by any catch block (in ...
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.
Read now
Unlock full access