Image

5Understanding Methods and Variable Scope

CERTIFICATION OBJECTIVES

•        Create and Use Methods

•        Pass Objects by Reference and Value

•        Understand Variable Scope

•        Create and Use Constructors

•        Use the this and super Keywords

•        Create Static Methods and Instance Variables

image       Two-Minute Drill

Q&A    Self Test

This chapter will look at some of the details of methods and variable scoping. You are likely familiar with methods; this chapter will review the nuances of method and constructor creation. The effect ...

Get OCA Java SE 8 Programmer I Study Guide (Exam 1Z0-808), 3rd Edition 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.