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 3: Data Types, Variables and Arrays

Java is a Strongly Typed Language: It is important to state that at the beginning that Java is a strongly typed language. Indeed, part of Java’s safety and robustness comes from this fact. First, every variable has a type, every expression has a type and every type is strictly defined. Second, all assignments, whether explicit […]