Java Reference
In-Depth Information
16. The scope of a local variable cannot contain the definition of another variable
with the same name.
17. A qualified name is prefixed by its class name or by an object reference, such
as Math.sqrt or other.balance .
18. An unqualified instance field or method name refers to the this parameter.
19. A local variable can shadow a field with the same name. You can access the
shadowed field name by qualifying it with the this reference.
20. A package is a set of related classes.
21. The import directive lets you refer to a class of a package by its class name,
without the package prefix.
22. Use a domain name in reverse to construct unambiguous package names.
23. The path of a class file must match its package name.
24. Unit test frameworks simplify the task of writing classes that contain many test
cases.
25. The JUnit philosophy is to run all tests whenever you change your code.
FURTHER READING
1. Bertrand Meyer, Object-Oriented Software Construction, Prentice-Hall,
1989, Chapter 7 .
2. http://www.zvon.org/other/PerlTutorial/Output A
dynamic tutorial for regular expressions.
3. http://java.sun.com/docs/books/jls The Java language
specification.
4. Robert X Cringely, Accidental Empires, Addison-Wesley, 1992.
375
376
REVIEW EXERCISES
΢΢ Exercise R8.1. Consider the following problem description:
Search WWH ::




Custom Search