Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.

Slides:



Advertisements
Similar presentations
In Review JAVA C++ GUIs - Windows Webopedia.com.
Advertisements

Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Lab Information Security Using Java (Review) Lab#0 Omaima Al-Matrafi.
Object Orientated Programming
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
Introduction to Java Kiyeol Ryu Java Programming Language.
For more Lectures and Notes Visit
Introduction to Java.
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
LESSON 1 INTRODUCTION Compiled By: Edwin O. Okech [Tutor, Amoud University] JAVA PROGRAMMING.
CMSC 202 Computer Science II for Majors Fall 2009 Introduction.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
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]
CSE 452: Programming Languages Java and its Evolution.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
Sadegh Aliakbary Sharif University of Technology Spring 2011.
Sadegh Aliakbary. Copyright ©2014 JAVACUP.IRJAVACUP.IR All rights reserved. Redistribution of JAVACUP contents is not prohibited if JAVACUP.
1. 2 is high level programming language like C++, Visual Basic, developed by James Gosling and Patrick Naughton at Sun Microsystems in 1991.
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.
CMSC 202 Computer Science II for Majors Object-Oriented Programming.
 2003 Prentice Hall, Inc. All rights reserved. 1 Java Training Course Dr. H.E. Dunsmore Purdue University Java – How to Program, Deitel (5 th Edition)
Java Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
Sadegh Aliakbary Sharif University of Technology Fall 2012.
JAVA Java is a programming language and computing platform first released by Sun Microsystems in It was first developed by James Gosling at Sun Microsystems,
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
Module Overview n Module Title: OO Programming n Module Code: MIT3446 n Module Value: 3.0 n Duration: 15 weeks n Class-Contact Hours: Lecture15 hrs n Lab/Tutor30hrs.
Chapter 1 Section 1.1 Introduction to Java Slides prepared by Rose Williams, Binghamton University Kenrick Mock, University of Alaska Anchorage.
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.
Computer Programming 2 Why do we study Java….. Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer.
Java and its Evolution. Contents Java Introduction Java Features How Java Differs from other OO languages Java and the World Wide Web Java Environment.
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.
Java: An Overview John R Durrett Texas Tech University.
Application Architecture Using Java Hong Li. Introduction Developed by a team led by James Gosling at Sun Microsystem. Originally called Oak, designed.
JAVA INTRODUCTION. What is Java? 1. Java is a Pure Object – Oriented language 2. Java is developing by existing languages like C and C++. How Java Differs.
Introduction Mehdi Einali Advanced Programming in Java 1.
JAVA Ekapap Julnonyang When it was implemented? Developed by Sun Microsystems. The first public implementation was Java 1.0 in 1995 The language.
Lesson 1 1 LESSON 1 l Background information l Introduction to Java Introduction and a Taste of Java.
1 Introduction to Java. 2 * 10% Assignments/ class participation * 10% Pop Quizzes * 05% Attendance * 25% Mid Term * 50% Final Term.
Introduction to Programming 1 1 2Introduction to Java.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 15: Java Basics Fundamentals of Web Programming.
Introduction to JAVA Programming
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Chapter 1 Coding Introduction.
Applications Active Web Documents Active Web Documents.
Object Oriented Programming in
Done By: Ashlee Lizarraga Ricky Usher Jacinto Roches Eli Gomez
Chapter 1 Introduction to Computers, Programs, and Java
Chapter No. : 1 Introduction to Java.
The Java Programming Language
Java programming lecture one
Introduction Enosis Learning.
Chapter 1 FOUNDATIONS OF JAVA
PROGRAMMING IN JAVA. INTRODUCTION TO JAVA  Java is a general purpose computer programming language that is concurrent, class-based, object- oriented.
Introduction Enosis Learning.
Chapter 1 Coding Introduction.
Advanced Programming Fall 2017.
(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.
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:

Fundamental of Java Programming (630002) Unit – 1 Introduction to Java

Java is a general purpose object oriented Programming language. It is developed by Sun Microsystems of USA in Its original name was Oak given by James Gosling, who is one of the inventors of the language. Java was initially Developed for Softwares for Consumer Electronics Devices like TVs, VCRs, and others.

The father of Java – James Gosling

Introduction to Java Java has taken the most popular languages of that time i.e. C and C++ as base by considering its various features and removing their limitations. With this they have develop a most simple, reliable, portable and powerful language.

History of Java YearDevelopment 1990Sun Microsystems decided to develop a special software for consumer electronics devices. A Team has been formed to undertake this task. James Gosling was the head of that team. 1991The team announce a new language called “Oak” 1992The team known as “Green Project” team, have demonstrated the use of language on a list of home appliances. 1993World Wide Web (WWW) has given support to Green Project Team and they have started thinking for development of Web Applets 1994A new Web browser called HotJava has been developed by the Team to run applets. 1995Oak was rename to Java due to some legal problems. 1996Sun release Java Development Kit 1.0 (JDK 1.0)

History of Java YearDevelopment 1997Sun release JDK Sun release Java 2 with JDK Sun release J2SE and J2EE 2000JDK JDK JDK JDK 1.6

Features to Java Java has various features which makes it simple, secure and compact. They are as follows: (1)Compiled and Interpreted (2)Platform Independent and Portable (3)Object Oriented (4)Secure (5)Distributed (6)Familiar, Simple and Small (7)Multithreaded and Interactive (8)High Performance (9)Dynamic and Extensible

Features to Java (1) Compiled and Interpreted : Usually a computer language is either compiled or interpreted. But java combines both the approaches. First java compiler translates the source code into byte code instructions. Bytecodes are not machine instructions so in second stage, Java Interpreter generates machine code and execute the code. So we can say that java is Compiler and Interpreter.

Java Program Source Code Java Program Source Code Java Compiler Virtual Machine Byte Code Virtual Machine Byte Code Virtual Machine Byte Code Virtual Machine Byte Code Phase – I (Compilation) Java Interpreter Output Phase – II (Interpretation)

Features to Java (2) Platform Independent and Portable : Java programs can be moved easily from one system to another, anywhere and anytime. Due to this reason only the java is the most popular language on the internet. Java is Platform independent because it does not generates the machine code but it generates a code for JVM (Java Virtual Machine) so the program can be run on any machine without any problem.

Features to Java (3) Object Oriented : Java is pure Object Oriented Programming Language. Almost everything in java is an object. All programs, codes and data always resides inside the objects and classes.

Features to Java (4) Secure : Java is a secure language. It has compile time and run time checking for data types. On the other hand java provides the assurance that no viruses will be communicated with applets. One more thing is java does not support pointers so no question of memory address to user.

Features to Java (5) Distributed : Java is a language developed for distributed language for creating application on networks. It has ability to share both – data and programs. This will allow the programmers at various remote locations to work together on a single project.

Features to Java (6) Simple, Small and Familiar : Java is simple language because many of the features are from C and C++. Again it removes problems from C and C++ like (1) it does not support pointers, (2) Preprocessors (3) goto statement and many others. Java is small language because it consist of only Six packages. It is familiar because it looks like C++. In other words we can say “Java is simplified version of C++”.

Features to Java (7) Multithreaded and Interactive : Multithreading means handling multiple tasks simultaneously. Means that we can do more then one work at a time. E.g. listening music is one work and download from internet is another work is the example of Multithreading. Through java we can develop programs for interactive systems like cellphones, lcds etc.

Features to Java (8) High Performance : The performance of Java is quite impressive because it uses compilation and interpretation both. It gives a very much high performance to the java programs. Java architecture has also reduce the overheads which also improves the performance.

Features to Java (9) Dynamic and Extensible: Java is dynamic language. It is capable of creating new classes, methods and objects. Java supports functions written in C or C++ also. This is known as native code. This native code will bind with the code dynamically. Java is Extensible because we can define our own classes also which can be added to the pure java language.

Comparison between C and Java (1)Java does not have sizeof or typedef (2)Java does not have struct and union (3)Java does not have pointers (4)Java does not have preprocessors like #include, #define etc. (5)Java has new operator instanceof (6)Java has various features of OOP which are not there in C

Comparison between C++ and Java (1)Java does not support Operator Overloading (2)Java does not have template classes (3)Java does not support multiple inheritance instead of that it uses interface (4)Java does not support global variable declaration (5)Java does not use destructor instead of that it uses finalize() method (6)There are no header files in java

C++ Summary of C, C++ and Java C C Java

Process of Building and Running Java Application Text Editor Java Source Code javac (Compiler) Java class file java (Interpreter) Java Program Output

Thank You