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 ...

Get Java Garage now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.