INTRODUCTION TO JAVA PROGRAMMING LANGUAGE



Similar documents
2 Introduction to Java. Introduction to Programming 1 1

Habanero Extreme Scale Software Research Project

Online Recruitment System 1. INTRODUCTION

CSE 452: Programming Languages. Acknowledgements. Contents. Java and its Evolution

Contents. Java - An Introduction. Java Milestones. Java and its Evolution

CS 209 Programming in Java #1

System Structures. Services Interface Structure

Programming Languages

An Overview of Java. overview-1

Oracle WebLogic Foundation of Oracle Fusion Middleware. Lawrence Manickam Toyork Systems Inc

1. Overview of the Java Language

Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives

SE 450 Object-Oriented Software Development. Requirements. Topics. Textbooks. Prerequisite: CSC 416

Section 1.4. Java s Magic: Bytecode, Java Virtual Machine, JIT,

CSC 551: Web Programming. Spring 2004

Zulu by Azul OpenJDK for Azure

Sample copy. Introduction To WebLogic Server Property of Web 10.3 Age Solutions Inc.

9/11/15. What is Programming? CSCI 209: Software Development. Discussion: What Is Good Software? Characteristics of Good Software?

JAVA Web Database Application Developer

Virtual Credit Card Processing System

Mobile Application Languages XML, Java, J2ME and JavaCard Lesson 04 Java

Glassfish, JAVA EE, Servlets, JSP, EJB

WebSphere Server Administration Course

Fahim Uddin 1. Java SDK

Installing Java. Table of contents

Characteristics of Java (Optional) Y. Daniel Liang Supplement for Introduction to Java Programming

Java SE 7 Programming

What s Cool in the SAP JVM (CON3243)

Java SE 8 Programming

Java SE 7 Programming

12/22/11. } Android by Pearson Education, Inc. All Rights Reserved by Pearson Education, Inc. All Rights Reserved.

PHP vs. Java. In this paper, I am not discussing following two issues since each is currently hotly debated in various communities:

Java in Education. Choosing appropriate tool for creating multimedia is the first step in multimedia design

Application Servers - BEA WebLogic. Installing the Application Server

Implementing Java Distributed Objects with JDBC

Oracle Java SE and Oracle Java Embedded Products

IBM WebSphere Server Administration

What Is the Java TM 2 Platform, Enterprise Edition?

JAVA Technologies QUARTER 1 DESKTOP APPLICATIONS - ESSENTIALS QUARTER 2 NETWORKING AND OPERATING SYSTEMS ESSENTIALS. Module 1 - Office Applications

For Course Details, visit:

ATSBA: Advanced Technologies Supporting Business Areas. Programming with Java. 1 Overview and Introduction

Introduction to Sun ONE Application Server 7

Java 2 Platform, Enterprise Edition (J2EE) Bruno Souza Java Technologist, Sun Microsystems, Inc.

Modern Software Development Tools on OpenVMS

Enterprise Java. Where, How, When (and When Not) to Apply Java in Client/Server Business Environments. Jeffrey Savit Sean Wilcox Bhuvana Jayaraman

Java SE 7 Programming

Contents. Client-server and multi-tier architectures. The Java 2 Enterprise Edition (J2EE) platform

Jonathan Worthington Scarborough Linux User Group

Reminders. Lab opens from today. Many students want to use the extra I/O pins on

Pathways to Digital Growth

Course Description. Course Audience. Course Outline. Course Page - Page 1 of 5

Version Overview. Business value

GlassFish v3. Building an ex tensible modular Java EE application server. Jerome Dochez and Ludovic Champenois Sun Microsystems, Inc.

Applets, RMI, JDBC Exam Review

Enterprise Application Integration

Java Programming. Binnur Kurt Istanbul Technical University Computer Engineering Department. Java Programming. Version 0.0.

NetBeans IDE Field Guide

Java applets. SwIG Jing He

Tuning WebSphere Application Server ND 7.0. Royal Cyber Inc.

Efficiency of Web Based SAX XML Distributed Processing

VOL. 2, NO. 1, January 2012 ISSN ARPN Journal of Science and Technology ARPN Journals. All rights reserved

02 B The Java Virtual Machine

The Java Series. Java Essentials I What is Java? Basic Language Constructs. Java Essentials I. What is Java?. Basic Language Constructs Slide 1

Lesson 06: Basics of Software Development (W02D2

Free Java textbook available online. Introduction to the Java programming language. Compilation. A simple java program

Building Web Applications, Servlets, JSP and JDBC

Elements of Advanced Java Programming

A Beginners Guide to Fusion Middleware

What Perl Programmers Should Know About Java

picojava TM : A Hardware Implementation of the Java Virtual Machine

Crash Course in Java

Developing Embedded Software in Java Part 1: Technology and Architecture

Free Java textbook available online. Introduction to the Java programming language. Compilation. A simple java program

The Hotspot Java Virtual Machine: Memory and Architecture

Apache Jakarta Tomcat

WebSphere Training Outline

Java with Eclipse: Setup & Getting Started

Architectural Overview

How to Build an E-Commerce Application using J2EE. Carol McDonald Code Camp Engineer

Effective Java Programming. efficient software development

Chapter 3 Operating-System Structures

Java Garbage Collection Basics

The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.

core. Volume I - Fundamentals Seventh Edition Sun Microsystems Press A Prentice Hall Title ULB Darmstadt

WEBLOGIC ADMINISTRATION

Core Java+ J2EE+Struts+Hibernate+Spring

1) SETUP ANDROID STUDIO

CS3600 SYSTEMS AND NETWORKS

Learning GlassFish for Tomcat Users

System Architecture V3.2. Last Update: August 2015

Web Application Architecture (based J2EE 1.4 Tutorial)

1. Introduction 1.1 Methodology

Restraining Execution Environments

Chapter 1 Introduction to Computers, Programs, and Java

Real time vehicle tracking and driver behaviour monitoring using cellular handset based accelerometer and GPS data

Lab 0 (Setting up your Development Environment) Week 1

Mobile Operating Systems. Week I

Extreme Java G Session 3 Main Theme Java Core Technologies (Part I) Dr. Jean-Claude Franchitti

AS/400 System Overview

Transcription:

INTRODUCTION TO JAVA PROGRAMMING LANGUAGE Today Java programming language is one of the most popular programming language which is used in critical applications like stock market trading system on BSE, banking systems or android mobile application. Java was developed by James Gosling from Sun Microsystems in 1995 as an object-oriented language for general-purpose business applications and for interactive, Web-based Internet applications. The goal was to provide platformindependent alternative to C++. In other terms it is architecturally neutral, which means that you can use Java to write a program that will run on any platform or device (operating system). Java program can run on a wide variety of computers because it does not execute instructions on a computer directly. Instead, Java runs on a Java Virtual Machine (JVM). Java is a general-purpose programming language that s used in all industries for almost any type of application. If you master it, your chances of getting employed as a software developer will be higher than if you specialize in some domainspecific programming languages. The Java language is object-oriented (OO), which allows you to easily relate program constructs to objects from the real world.

History of Java Releases This program runs fine under GNU Gcc compiler. We have tested this in a Ubuntu Linux system. But if you are using any other compiler like Turbo C++, the program needs to be modified to be executed successfully. For the sake of simplicity, we have not included those additional stuff here. Java Version/CodeName Release Date Important Features/Code Name JDK 1.0 (Oak) 23rd Jan 1996 Initial release JDK 1.1 19th Feb 1997 Reflection, JDBC, Inner classes, RMI J2SE 1.2 (Playground) 8th Dec 1998 Collection, JIT, String memory map J2SE 1.3 (Kestrel) 8th May 2000 Java Sound, Java Indexing, JNDI J2SE 1.4 (merlin) 6th Feb 2002 Assert, regex, exception chaining, J2SE 5.0 (Tiger) 30th Sept 2004 Generics, autoboxing, enums Java SE 6.0 (Mustang) 11th Dec 2006 JDBC 4.0, java compiler API, Annotations Java SE 7.0 (Dolphin) 28th July 2011 String in switch-case, Java nio, exception handling new way

The Java Program Life Cycle Java requires the source code of your program to be compiled first. It gets converted to either machine-specific code or a byte code that is understood by some run-time engine or a java virtual machine. Not only will the program be checked for syntax errors by a Java compiler, but some other libraries of Java code can be added (linked) to your program after the compilation is complete (deployment stage). Step1 : Create a source document using any editor and save file as.java (e.g. abc.java) Step2 : Compile the abc.java file using javac command or eclipse will compile it automatically. Step3 : Byte Code (abc.class) will be generated on disk.

Step4 : This byte code can run on any platform or device having JVM (java.exe convert byte code in machine language) Let s get familiar with various terminologies used by java programmers. JDK (Java Development Kit) : JDK contains JRE along with various development tools like Java libraries, Java source compilers, Java debuggers, bundling and deployment tools JRE (Java Runtime Environment) : It is part of JDK but can be used independently to run any byte code (compiled java program). It can be called as JVM implementation. JVM (Java Virtual Machine) : JVM is software that can be ported onto various hardware platforms. JVM will become instance of JRE at run time of java program. Byte codes are the machine language for the JVM. Like a real computing machine, JVM has an instruction set which manipulates various memory areas at run time. Thus for different hardware platforms one has corresponding implementation of JVM available as vendor supplied JREs. Java API (Application Programming Interface) : Set of classes written using Java programming language which runs on JVM. These classes will help programmers by providing standard methods like reading from console, writing to console, saving objects in data structure etc.

Advantages of Java programming language Built-in support for multi-threading, socket communication, and memory management (automatic garbage collection). Object Oriented (OO). Better portability than other languages across operating systems. Supports Web based applications (Applet, Servlet, and JSP), distributed applications (sockets, RMI, EJB etc.) and network protocols (HTTP, JRMP etc.) with the help of extensive standardized APIs (Application Programming Interfaces). Summary Java is platform independent programming language which means compile once and run anywhere. Java provides built in functionality for Thread, collection, File IO etc. The Java language is object-oriented (OO) programming language which will allow programmer to relate java domain objects with real life objects. Source: http://www.w3resource.com/java-tutorial/