Java array basics
An array is a data structure that allows you access and manage many variables using a uniform name. Imagine it like a pigeon hole, with rows and columns, you can identify a specific location in a pigeon by addressing it using row and column coordinates; Now imagine how that can be a useful thing if [...]
Variable declarations and Pass by value
Variables are declared using this structure. [access keywords] [special keywords] Type varname;, and they are initialized using this structure varname = initial value;. It is common to see the declaration and initialization on the same line, thus giving us this structure [access keywords][special keywords] Type varname = initial value;
Java constructors
Constructors are special method — Let me take that back, they are not methods, they are constructors, they just look a bit like methods.
Abstract classes
A class with at least one abstract method, is an abstract class (should be defined as an abstract class) – by this definition, a Java class becomes concrete when the following 2 conditions are met. There are no abstract methods defined inside the class The abstract modifier is not preceding the class keyword on the [...]
An instance of a class is called an object
This phrase is very common in Java literature, hence we need to have a better understanding of what it means. Remember when we defined a class on Java class fundamentals, we talked about its parts, and how we’re supposed to define it, now we’ll talk about it and we’re going to include object in the [...]
Java classes, a deeper look
If you haven’t read the Java class fundamentals, read that first, then come back here, you will need an high level understanding of Java classes first. I left out some details during the introduction on Java class fundamentals, for good reason, it makes the article a bit easier to understand, so why another article on [...]
How to make Java objects talk to each other
One Java object can talk to another Java object by sending and responding to messages. So what are messages in terms of Java codes? The methods that you define inside your classes constitutes the messages, hence if you don’t define any method inside your classes (what good are they then?), then there is no invoke-able [...]
Java objects, what are they really?
I almost shied away from this subject because it’s very complex, and I’m not sure I can add value to the already voluminous definitions of Java objects on the Internet, but I have other intentions why I’d like to take a shot at this, someday these small chunks of info I’ve posted here will become [...]