Chapter 3. Methods and encapsulation

Exam objectives covered in this chapter

What you need to know

[1.1] Define the scope of variables. Variables can have multiple scopes: class, instance, method, and local. Accessibility of a variable in a given scope.
[2.4] Explain an object’s life cycle. Difference between when an object is declared, initialized, accessible, and eligible to be collected by Java’s garbage collection. Garbage collection in Java.
[6.1] Create methods with arguments and return values. Creation of methods with correct return types and method argument lists.
[6.3] Create an overloaded method. Creation of methods with the same names, but a different set of argument lists.
[6.4] Differentiate between ...

Get OCA Java SE 7 Programmer I Certification Guide 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.