Quick introduction to Java Programming language - Part 1
Chapters
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.
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:
- Notepad: Notepad is a common text-only editor.
- Eclipse: is open-source, can be downloaded from http://www.eclipse.org/.
- Netbeans: is open-source, can be downloaded from http://www.netbeans.org/index.html.
Description
This tutorial is targetted for beginers seeking a quick get on with guide on Java programming language. 3 parts include
- Java basics
- Object oriented programming
- Advance concepts
Each part is subdivided in multiple chapters.
Java basics has the following chapters
- Introduction
- Environment Setup
- Basic Syntax
- Objects and Classes
- Basic Data Types
- Variable Types
- Modifier Types
- Basic Operators
- Loops
- Decision Making
- Numbers Class
- Character and String Class
- Arrays
- Date and Time
- Regular Expression
- Methods
- Streams, Files and I/O
- 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!