Unit 9: Packages and Interface

Packages are used in Java in order to prevent naming conflicts, to control access, to make searching/locating and usage of classes, interfaces, enumerations and annotations easier, etc. A package can be defined as a grouping of related types (classes, interfaces enumerations etc) providing access protection and name space management. A package is a collection of […]

Unit 7: A Closer Look at Methods and Classes

Overloading Methods In Java it is possible to define two or more methods within the same class that share the same name, as long as their parameter declarations are different. When this is the case, the methods are said to be overloaded and the process is referred to as method overloading Method overloading is one […]