Variables are pretty self explanatory, they are used to hold references to points in memory that store information (ok, maybe not that self explanatory). Things like strings, integers, doubles, objects, everything, in fact, can be stored as a variable. They are for the most part pretty simple, but, as always, there’s some odd and confusing edge cases to be aware of when using them.
This is where I write about being sick AND busy for the last few weeks, right? Another post coming later today!
There may be one or two people who click onto this article expecting a discussion on socialism, sorry to disappoint, but it’s still about Java!
We touched briefly on class structure in the last post, but now I want to dive into a bit more detail on the different components of a java class. Most of it is pretty basic, but there may be one or two parts that surprise you.