An Overview of Java.

Slides:



Advertisements
Similar presentations
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Advertisements

The Life and Times of Andrew Bardee and Chris Cornelius Programming Languages Fall 2011.
IC211 Object Oriented Programming Overview of Java.
For more Lectures and Notes Visit
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
Java program.
BASIC JAVA PROGRAMMING TUTORIAL. History  James Gosling and Sun Microsystems  Oak  Java, May 20, 1995, Sun World  Hot Java –The first Java-enabled.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
+ Java vs. Javascript Jessi Style. + Java Compiled Can stand on its own Written once, run anywhere Two-stage debugging Java is an Object Oriented Programming.
Java Workshop for Teachers May 6, 2005 A Brief Look at the Java Programming Language.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
Java Beserkers Group 4. Start of Java Development began on June of 1991 by a group of computer scientist at the Sun Mircrosystems Company Development.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
Introduction to Java. 2 Module Information Programming conceptsPrerequisites Beginners in JAVATarget Audience This module will provide you a solid grounding.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Introduction to Programming Languages. Problem Solving in Programming.
1.  At the end of this slide, student can:  Explore tools, features, properties and interface of the Textpad.  Creating a new project.  Open and run.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
August 6, 2009 EVENT DRIVEN PROGRAMMING WITH JAVA.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
Introduction To JAVA By Ihtesham Ul Haq. Course Objectives Upon completing the course, you will understand Upon completing the course, you will understand.
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
 Programming Language  Object Oriented Programming  JAVA – An Introduction  JAVA Milestones  JAVA Features.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
Computer Programming 2 Why do we study Java….. Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer.
We will talking about story of JAVA language. By Kristsada Songpartom.
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
1. An Introduction A Programming Language A Technology Java Development Kit Java API One Language: Three Editions Standard Edition Enterprise Edition.
: Maha Sabri Altememe Lecturer : Maha Sabri Altememe Lecture :1 1.
Java Basics 1 Brief History of Java and Overview of Langauge.
1 The JAVA Language Object Oriented Technology Mithani Binjan M.
Java Example Presentation of a Language. Background Conception: Java began as a language for embedded processors in consumer electronics, such as VCR,
What is Java? Object Oriented Programming Language Sun Microsystems “Write Once, Run Everywhere” Bytecode and Virtual Machine Java Platform (Java VM and.
Introduction Mehdi Einali Advanced Programming in Java 1.
Today… “Hello World” ritual. Brief History of Java & How Java Works. Introduction to Java class structure. But first, next slide shows Java is No. 1 programming.
OOP’ S IN J AVA Presented By: Asst. Prof. Navjeet Kaur Computer Department Govt College Ropar.
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
JAVA TRAINING IN NOIDA. Introduction to Java:  Java training in noida is a general-purpose computer programming language that is concurrent, class-based,
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Introduction to JAVA Infobizzs.com.
G. Pullaiah College of Engineering and Technology
Object Oriented Programming in
Done By: Ashlee Lizarraga Ricky Usher Jacinto Roches Eli Gomez
Unit-1 JAVA Programming.
Chapter 1 Introduction to Computers, Programs, and Java
Chapter No. : 1 Introduction to Java.
The Java Programming Language
UCSC All rights reserved
Introduction.
Introduction Enosis Learning.
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
Chapter 1 FOUNDATIONS OF JAVA
JAVA TUTORIALS.
PROGRAMMING IN JAVA. INTRODUCTION TO JAVA  Java is a general purpose computer programming language that is concurrent, class-based, object- oriented.
Object Oriented Analysis and Design
Introduction Enosis Learning.
Advanced Programming Fall 2017.
Units with – James tedder
Units with – James tedder
(Computer fundamental Lab)
Java History, Editions, Version Features
By Rajanikanth B Overview Of Java By Rajanikanth B
CSC 142 Introduction to Java [Reading: chapters 1 & 2]
Java Evolution Java History. Java Features.
Introducing Java.
Chap 1. Getting Started Objectives
WELCOME TO ALL STUDENTS IN MY CLASS: Hope You All Enjoyed C#
Outcome of the Lecture Upon completion of this lecture you will be able to understand Fundamentals and Characteristics of Java Language Basic Terminology.
Presentation transcript:

An Overview of Java

The Birth of Modern Programming C The creation of C was a direct result of the need for a structured, efficient, high level language that could replace assembly code when creating system programs. Another problem was that early computer languages such as BASIC, COBOL and FORTRAN were not designed around structured principles. They relied upon the GOTO as a primary means of program control. As a result, programs written using these languages tended to produce “spaghetti code”.

The Need for C++ During the late 1970s and early 1980s, C became the dominant computer programming language. However, even with structured programming methods, once a project reaches a certain size, complexity exceeds. To solve this problem, a new way to program was invented, called Object oriented programming. C++ extends C by adding object oriented features. The invention of C++ was not an attempt to create a completely new programming language. Instead, it was an enhancement to already highly successful one.

The Creation of Java Java was conceived by James Gosling, Patrick Naughton, Chris Wart, Ed Frank and Mike Sheridan an Sun Microsystems. This language was initially called “Oak” but was renamed “Java” in 1995. Somewhat surprisingly, the original impetus for Java was not Internet. Instead the primary motivation was the need for a platform-independent (that is, architecture-neutral) language that could be used to create software to be embedded in various consumer electronic devices, such as microwave ovens and remote controls. Gosling and others began work on portable, platform-independent language that could be used to produce code that would run on a variety of CPUs. r

Continued… Because of the similarities between Java and C++, it is tempting to think of Java as simply the “Internet version of C++”. Java is influenced by C++, it is not an enhanced version of C++. Java is to Internet programming what C was to systems programming.

Java Advantages Portable: Write Once, Run Anywhere Simple: Java was designed to be easy for the professional programmer to learn and use effectively. If you are an experienced C++ programmer, moving to Java will require very little effort.

Continued… Robust memory management: In C/C++, the programmer must manually allocate and free all dynamic memory, but Java eliminates these problems by managing memory allocation and deallocation. In a well-written Java program, all run-time errors could be managed by your program.

Continued… Distributed: Java is designed for the distributed environment of the internet. Multi-threaded: Java supports multithreaded programming which allows you to write programs that do many things simultaneously. Dynamic & extensible (loads of libraries) Classes stored in separate files Loaded only when needed

Three OOP Principles Encapsulation Inheritance Polymorphism

Encapsulation Encapsulation is the mechanism that binds together code and the data it manipulates, and keeps both safe from outside interference and misuse. Access to the code and data inside the wrapper is tightly controlled through a well-defined interface.

Inheritance Inheritance is the process by which one object acquires the properties of another object. This is important because it supports the concept of hierarchical classifications.

Polymorphism Polymorphism (from the Greek, meaning “many forms”) is a feature that allows one interface to be used for a general class of actions.

A First Simple Program class Example { public static void main(String args[]) System.out.println(“ simple Java Program”); }

Java Program class Example { public static void main(String args[]) int num; num=100; System.out.println(“This is num: ” +num); num=num*2; System.out.println(“The value of num *2 is”); System.out.println(num); }