Java: Garbage Collection

Garbage collection in Java is kind of, well, garbage. What is it? It’s the process by which the Java Virtual Machine cleans up no longer used pieces of memory (objects that are out of scope, for example), in order to keep memory free. It’s a bit of an odd beast, though. You can explicitly call it, but sometimes it will run, sometimes it won’t. Continue reading

Java: Variable Naming

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.

Continue reading

Java: Class Structure

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.

Continue reading

First blog post

Well, it’s the cliche to edit this and spam what you’re going to write about, right? To be honest, I’m doing this for selfish reasons (Someone selfish on the internet? Shock horror!).

I’m a coder, but I want to learn more, and get better at what I already know. And I figured the best way to do that is to start writing about it, because if I can write about it, then I have to understand it at least a little bit, right? (And if it turns out I don’t understand it, approximately 8 million people will most likely instantly tell me, probably using caps lock.)

So stick around why don’t you? Initially I’m planning on writing a little bit about Java basics, mostly taken from certification books, and then moving on to some other technologies, perhaps some web based stuff.

…or it’ll fizzle out in two weeks. Who knows? 😀