Classical Object Oriented Programs in Java
Learning Standards
- Classical object-oriented programming
- Writing object-oriented programs in Java
Intro
Java is a statically typed, classical inheritance programming language used in a wide array of environments. Today, Java can be compiled and run on virtually any hardware, ranging from IoT and mobile devices (Android) to large, distributed environments or web applications.
We'll use Java Standard Edition (Java SE) which is the core functionality of the Java programming language. Other editions exist including Java Enterprise Edition (Java EE) which extends Java SE to add additional APIs and a runtime environment for "developing and running large-scale, multi-tiered, scalable, reliable, and secure network applications." Java Micro Edition (Java ME) is a subset of the Java SE API and includes other libraries useful for developing applications for small devices.
Later, we'll use Gradle which is a build tool for compiling Java applications and loading any necessary dependencies. You can think of it like NPM and Gulp.js rolled into one.
Getting Started
Setting Up a Java Development Environment:
- Install Java8.
Under "Java SE Development Kit 8u112", click the link beside Mac OS X to download the correct package.
To confirm, run
java -version
. The computer should displayjava version "1.8.0_112"
. - Install Gradle using
brew update && brew doctor
thenbrew install gradle
. To confirm, rungradle -version
. The computer should displayGradle 2.XX
. - [optional] It's also recommended to add a Java linter for pre-compile error checking in your editor. A good one for atom is 'linter-javac' which will check for errors when java files are saved.
Progression
- Unit 1 - Java for JavaScript Developers
- Unit 2 - Encapsulation
- Unit 3 - Inheritance
- Unit 4 - Polymorphism
- Unit 5 - JUnit and Gradle
- Project - Electronic Life