Reading:  

Quick introduction to Java Programming language - Part 1


What is Java?

What is java?

Java is an Object Oriented programming language developed by James Gosling from Sun Microsystems, first released version of Java 1.0 in 1995. Sun Microsystems was acquired by the Oracle in 2010.The current Java version is Java 1.7 which is also called asJava 7.

Platform: Any software environment in which a program execute, is called as a platform. Since Java has its own runtime environment (JRE) and API, is known asplatform.The Java platform allows developers to codding in various different languages than the Java, which still runs on the Java virtual machine (JVM). Java is Open Source.

Where it is used?

There are various software devices where java is currently used. Some of them are as follows:

  1. Mobile
  2. Embedded System
  3. Games
  4. Enterprise Applications such as banking applications.
  5. Smart Cards
  6. Desktop Applications: antivirus, media player etc.
  7. Web Applications such as irctc.co.in, javatpoint.com etc.
  8. Robotics etc.

Features of Java:

Simple:

  • It is successor of C++: Familiar to programmers.
  • It omits various rarely used, difficult to understand, confusing features of C/C++, like pointers,multiple inheritance, operator overloading etc.

Added simplify features are:

  • Java hasGarbage collection, so there no worry about storage management, which resultstobugs.
  • It has rich predefined class library

Object-Oriented:

  • In an object-oriented system, a classis a group of data and methods. The data and methods describe the state and behavior of an object. Arrangements of classes arein a hierarchy, so that a subclass can inherit behavior from its superclass.

Interpreted:

  • The Java compiler generates byte-codes, rather than source code.
  • To run a Java program, use the Java interpreter to execute the compiled byte-codes. The code is designed to transport code efficiently to various platforms.

Robust:

Java has been designed for coding highly robust software:

  • Java does automatic garbage collection, hence there will be no memory leaks
  • Lesscompile-time so bugs can be found early.

Secure:

It enables users to build virus-free, tamper-free systems. Authentication is achieved based on public-key encryption. 

Architecture-Neutral:

Java compilergeneratesbytecodes, which is not dependent on any architecture of computer, hence easy to interpret on any machine.

Multithreaded:

  • It is possible to write programs that can do many tasks simultaneously. This feature allows users to construct easily running interactive applications.
  • The java.lang package provides a Thread class, supports methods to start, run, and stop a thread.

Dynamic:

To adapt to an evolving environment:

  • Java loads in classes as they are needed, even from across the network
  • It defers various decisions like object layout to execution time, which solves various version problems of C++

Required Tools are:

The following software’s:

  • Operating System: Flavors of Windows like XP/7/8 or Linux
  • Java JDK(Java Development tool Kit)
  • Notepad / any text editor

 

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!