Reading:  

Quick introduction to Java Programming language - Part 1


Setting up the environment

To Download Java follow the below link:

The Latest version of Java can be downloaded fromhttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Installation of Java:

After java is downloaded, double click on .exe (file as shown below) to install java.

JDK Installer

 The Java Environment Variables set up:

The required environment variables that need be set

  • CLASSPATH: It points the location of JDK home directory. It also contains the address of the folder from where the jars get loaded by the ClassLoader (For more details of ClassLoader visit here)
  • JAVA_HOME: It points the location of Java home directory.

How to set environment variable in different platforms

Windows XP

Right click "My Computer", go to Properties. Now, select the "ADVANCED" tab and click "ENVIRONMENT VARIABLES". A window will open; to enter a new environment variable under System Variables, clicking "New" icon.

Example: if the path already has path, put ;( semicolon) at the end of existing path, then add home path of jdk c:\Program Files\java\jdk\bin'. Don’t alter or delete already existing/old paths.

Windows Vista / 7/8

Right click "My Computer", go to Properties. In the Property window select the "ADVANCED SYSTEM SETTINGS" and then select the "ADVANCED" tab and click "ENVIRONMENT VARIABLES". Now, enter a new environment variable under System Variables, clicking "New" icon.

For Linux, UNIX, FreeBSD and Solaris:

Environment variable PATH should be set to point to where the Java binaries have been installed.

Example, if we use bash as shell, then we need to add the following to the end of '.bashrc: export PATH=/path/to/java:$PATH'

Popular Java Editors:

We need aneditor to write the java code. In the market we may findvariousof IDEs. The popular java editors are:

 

Description

This tutorial is targetted for beginers seeking a quick get on with guide on Java programming language. 3 parts include 

  1. Java basics
  2. Object oriented programming
  3. Advance concepts

Each part is subdivided in multiple chapters.

Java basics has the following chapters

  1. Introduction
  2. Environment Setup
  3. Basic Syntax
  4. Objects and Classes
  5. Basic Data Types
  6. Variable Types
  7. Modifier Types
  8. Basic Operators
  9. Loops
  10. Decision Making
  11. Numbers Class
  12. Character and String Class
  13. Arrays
  14. Date and Time
  15. Regular Expression
  16. Methods
  17. Streams, Files and I/O
  18. Exceptions Handling

Thanks for reading and as always, your feedback is very important to us. Let us know how we can improve and if you found any issues with this write up, send us a correction.



Audience

Beginners or students seeking a refresher on Java language

Author: Subject Coach
Added on: 9th Mar 2015

You must be logged in as Student to ask a Question.

None just yet!