Skip to main content

hellofadude's Blog

Polymorphism in Java

Posted by hellofadude on January 7, 2014 at 1:16 PM PST

In object oriented programming, polymorphism is a feature that allows you to provide a single interface to varying entities of the same type. This is analogous to the interpretation of the same concept in the field of Biology.

To understand how this works in Java, we must consider inheritance and the ways by which the Java programming language makes method calls.

How to reuse your Java classes

Posted by hellofadude on December 18, 2013 at 11:24 AM PST

One of the most compelling features about an OOP language like Java is that it provides a way to reuse code to add functionality within the classes you create. Essentially, when writing code in Java, seldom are you required to begin from scratch because the Java library comes with a great many classes that make it easy for you to attain a minimum level of functionality with relative ease.

Controlling access with implementation hiding in Java

Posted by hellofadude on December 8, 2013 at 6:28 PM PST

A key consideration for the library designer in the normal conduct of operations is maintaining the ability to make changes or improvements to the library at any time without requiring the consumers (client programmers) of that library to do the same. In Java, a library consists of a logical grouping of .class files packaged together to make a working program.

Understanding Java's flow of execution

Posted by hellofadude on December 4, 2013 at 2:49 PM PST

Java uses conditional statements to determine the execution path. Conditional statements provide a way to determine the truth or falsehood of a conditional expression, by which we mean to describe expressions that make use of relational operators and such, and that are able to produce a boolean value.

Safely initialising your Java objects

Posted by hellofadude on November 19, 2013 at 6:58 PM PST

The proper initialisation of objects is a concern that has primarily to do with safety in programming. In some programming languages, failing to properly initialise a variable or library component before attempting to use it can lead to very many bugs in your software that may be difficult to locate, however we are fortunate that Java takes a sensible approach to these matters.

Basics of the Java operators

Posted by hellofadude on November 11, 2013 at 8:51 AM PST

Operators in Java work much like they do in mathematics, producing a value from one or more operands. An operand is any quantity on which an operation can be performed and in Java these include primitives and objects.

Java objects and data types

Posted by hellofadude on October 25, 2013 at 5:02 PM PDT

Much of what you do in Java is to define classes that package data and functionality together by concept to represent the desired problem-space element. When you instantiate a class, you create an object that has it's own piece of memory made up of other objects. Java has a peculiar means of manipulating these elements in memory.

An Introduction to Java programming

Posted by hellofadude on October 16, 2013 at 8:59 AM PDT

Object Oriented programming (OOP) is a programming methodology whose progress of abstraction allows for the conception of elements within the problem space to exist as objects within the solution space. This seemingly one-on-one mapping provides an ideal abstraction of the real world or problem space; consider if you will, the normal objects with which you interact with everyday for instance a maple tree, a bicycle, a car etc..