Java

Home Programming Java

The Difference Between Instance & Static Methods in Java

An instance method is a method used only for THAT VERY INSTANCE. A static method is FOR EVERY INSTANCE.Here's a little code snippet to...

Pass A Text File to Scanner, Then Read It, in Java

The Scanner is super useful for taking user inputs. However, you might want to pass a text file into it.I'm going to show you...

Implicit & Explicit Parameters in Java, Explained

We've got the funky names for the things in Java. Implicit and explicit parameters. What the hell is that. As a programmer you've probably...

What Is An Interface in Java?

Java contains Interfaces, Classes and Objects. Distinguishing between each can be slightly difficult at first, but I will explain exactly what a Java interface...

What Is Encapsulation in Java?

In Java, and generally in Object-oriented programming, there's this magical thing called "Encapsulation".Encapsulation brings variables and methods together as a single thing. This way the...

What Is The Difference Between An Object & A Variable (JAVA)

In Java there's a few different things; Objects, Classes and Variables to name a few.In this post I'll be explaining the difference between what...

How To Make New Class in Java (Making A Simple Mammal...

Classes are super important in Java and most other Object-orientated programing languages. But what exactly is a Class?Classes Explained SimplySomething...

What Is An “Abstract Data Type” in Java? (How To Make...

Java comes with some different datatypes you can use from the start. To list a few (Source: Java for Dummies Quick Reference):...

Java Priority Queues: How to Create, Add Objects, Peek, Poll &...

A priority-queue is an "abstract data type". It is similar to a normal queue, but certain elements take priority when they are polled (perhaps...