Chapter Summary

This chapter covers variable and method declarations and the use of modifiers in these declarations. You learned the difference between field and local variables, how to declare and initialize arrays, and how methods are declared and used. You also learned how arguments are passed to methods, how access modifiers are used to restrict access to declared items, and how other modifiers are used. The following review and exam questions will test your knowledge of these topics and will help you to determine whether you need to study them further in preparation for the certification exam.

KEY TERMS

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams 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.