Used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type
2D ARRAY
Has a type such as int[][] or String[][], with two pairs of square brackets
ARRAY LENGTH
Returns the size of the array
OBJECT ORIENTED PROGRAM (OOP)
Built on the foundation laid by structured programming concepts
CLASS ATTRIBUTES
Also known as the FIELDS
METHOD
A block of code that only runs when called
FUNCTIONS
Methods are used to perform certain actions
SIX COMPONENTS of a method
Access Modifier
Return Type
Method Name
Parameter List
Exception List
Method Body
Types Of Constructor
Default Constructor
Parameterized Constructor
OOP CONSTRUCTOR
A special method that is used to initialize objects. The constructor is called when an object of a class is created. It can be used to set initial values for object attributes
THIS
Keyword in Java represents the current instance of a class. It is mainly used to access other members of the same class
JAVA PACKAGE
A group of similar types of classes, interfaces and sub-packages. Package in Java can be categorized in two forms, built-in package and user-defined package
PACKAGE KEYWORD
Used to create a package in Java
STATIC IMPORT
A feature introduced in Java programming language that allows members (fields and methods) defined in a class as public static to be used in Java code without specifying the class in which the field is defined
JAVA ENCAPSULATION
Defined as the wrapping up of data under a single unit. It is the mechanism that binds together code and the data it manipulates
ENCAPSULATION IN JAVA
A process of wrapping code and data together into a single unit, for example, a capsule which is a mix of several medicines
GET METHOD
Returns the value of the variable name
SET METHOD
Takes a parameter (newName) and assigns it to the name variable
JAVA INHERITANCE
Creating new classes based on existing ones. A class that inherits from another class can reuse the methods and fields of that class
TERM USE IN INHERITANCE
CLASS
SUB CLASS/ CHILD CLASS
SUPER CLASS/ PARENTS CLASS
REUSABILITY
SINGLE INHERITANCE
Subclasses inherit the features of one superclass
MULTILEVEL INHERITANCE
A class is extended to another class and extended to another class