1 The JAVA Language Object Oriented Technology Mithani Binjan M.

Slides:



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

Lab Information Security Using Java (Review) Lab#0 Omaima Al-Matrafi.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2005 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
IC211 Object Oriented Programming Overview of Java.
Introduction to Java Kiyeol Ryu Java Programming Language.
For more Lectures and Notes Visit
Lecture 1: Overview of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++ Designed.
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.
BASIC JAVA PROGRAMMING TUTORIAL. History  James Gosling and Sun Microsystems  Oak  Java, May 20, 1995, Sun World  Hot Java –The first Java-enabled.
Introduction to Java Programming with JBuilder 4
Chapter 1: Java Fundamentals 1 (c) Gary R. Smith, MS.
Sadegh Aliakbary Sharif University of Technology Spring 2011.
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.
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.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to Computers,
CPCS  Problem Solving in Everyday Life  Types of Problems  Problem Solving with Computers  Difficulties with Problem Solving 0-3.
Java Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
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.
1 Part I : Chapter 01 Introduction to Java Programming.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
Centre for Computer Technology ICT214 Object Oriented Design and Programming Week 1 - Introduction Richard Salomon and Umesh Patel Centre for Information.
August 6, 2009 EVENT DRIVEN PROGRAMMING WITH JAVA.
 Learning JAVA.  Understanding Salient features of JAVA.  Implementing JAVA PROGRAMS on your own.  Development of JAVA PROJECTS on your own.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
Introduction and Features of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Java Introduction 1. Introduction to Java Programming2 Computers and Computer Languages Computers are everywhere –how many computers do you own? Computers.
Java means Coffee Java Coffee Beans The name “JAVA” was taken from a cup of coffee.
JAVA PROGRAMMING BASICS CHAPTER 2. History of Java Begin with project Green in 1991 founded by Patrick Noughton, Mike Sheridan and James Gosling who worked.
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
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.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and web applications Very rich GUI libraries Portability (machine independence) A real Object.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
Java Basics 1 Brief History of Java and Overview of Langauge.
What is Java? Object Oriented Programming Language Sun Microsystems “Write Once, Run Everywhere” Bytecode and Virtual Machine Java Platform (Java VM and.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
introductory lecture on java programming
JAVA Ekapap Julnonyang When it was implemented? Developed by Sun Microsystems. The first public implementation was Java 1.0 in 1995 The language.
Getting Started With Java September 22, Java Bytecode  Bytecode : is a highly optimized set of instructions designed to be executed by the Java.
Java Computer Industry Lab. 1 Programming Java Java Basics Incheon Paik.
Features of JAVA PLATFORM INDEPENDENT LANGUAGE JAVA RUNTIME ENVIRONMENT (JRE) JAVA VIRTUAL MACHINE (JVM) JAVA APP BYTE CODE JAVA RUNTIME ENVIRONMENT.
Introduction to JAVA Programming
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
 It is a pure oops language and a high level language.  It was developed at sun microsystems by James Gosling.
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
Internet and Java Foundations, Programming and Practice
Introduction Enosis Learning.
An Overview of Java.
Chapter 1 FOUNDATIONS OF JAVA
Introduction Enosis Learning.
Advanced Programming Fall 2017.
Units with – James tedder
Units with – James tedder
From C++ to Java Java history: Oak, toaster-ovens, internet language, panacea What it is O-O language, not a hybrid (cf. C++) compiled to byte-code, executed.
(Computer fundamental Lab)
Java History, Editions, Version Features
By Rajanikanth B Overview Of Java By Rajanikanth B
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:

1 The JAVA Language Object Oriented Technology Mithani Binjan M

2 Programming Languages To adapt to changing environments and uses To implement refinements and improvements in the art of programming

3 History of OOPs  In 1960s Birth of Structured Programming Language  In early 1980s object-oriented programming (OOP)

4 History of OOPs  In 1979 C++ invented by Bjarne Stroustrup  1980s and the early 1990s, C++ took hold.

5 History of OOPs  In 1991 Java was conceived By James Gosling, Patrick Naughton, Chris Warth, Ed Frank, and Mike Sheridan  At Sun Microsystems, Inc. “Oak”  “Java” ( 1995 )

6 Java the Language of Internet  Expanded the universe of objects  Objects can move about freely in cyberspace.  On a network :  passive information/data  dynamic, active programs

7 Java Applications -&- Java Applets  An application is a program that runs on your computer, under the operating system of that computer.  An applet is an application designed to be transmitted over the Internet and executed by a Java-compatible Web browser.

8 Java’s Magic: The Bytecode  An application a highly optimized set of instructions designed to be executed by the Java run-time system - JVM  JVM - Java Virtual Machine  Truly Portable

9 JVM  Interpreter  JVM needs to be implemented for each platform.  Platform independent  Bytecode enables the Java run-time system to execute programs much faster

10 Just In Time (JIT) compiler  Sun supplies its Just In Time (JIT) compiler for bytecode. (Java-2)  JIT compiler is part of the JVM.  It compiles bytecode into executable code in real time, on a piece-by-piece, demand basis.

11 Java Buzzwords  Simple  Secure  Portable  Object-oriented  Robust  Multithreaded  Architecture- neutral  Interpreted  High performance  Distributed  Dynamic

12 Java Versions  Java 1.0  Java 1.1  Java 2  Java 2, version 1.2  Java 2, version 1.3  Java 2, version 1.4  Java 2, version 1.5  Java 2, version 1.6

13 Java the OOP Language  The Three OOP Principles Encapsulation Inheritance Polymorphism  Abstraction

14 Encapsulation getB( ) A B getA()

15 Inheritance Bird FlyingNon-Flying RobinSwallowPenguinKiwi

16 Polymorphism Shape Draw( ) Draw( a, b )Draw( a )Draw( a, b, c ) Rectangle Circle Triangle

17 Object Run time entity Represent a PERSON, BOOK, Bank Account, etc… User defined data Example: Object : Student DATA: Roll_no Name Percentage FUNCTIONS: Total Average Display

18 Class Set of Data & Code is class User defined data-type Example: Fruit, Furniture Vehicle CLASS DATA: ::::::::::::: FUNCTIONS: ::::::::::::

19 Variables & Data Types Named memory location that holds a value In java variables must be declared before it use in the program Variable must be of some datatype, it tells compiler what type of value it can store

20 Data Types Java supports eight different basic data types. Type Size in bytes DescriptionKeyword Character216-bit Unicode char Boolean- true / false1-bitboolean Byte18-bitbyte Short216-bitshort Integer432-bitint Long864-bitlong Float432-bitfloat Double864-bitdouble

21 Declaration & Initialization of variable Datatype varName; // Declaration of Variable varName = Value; Example: int count = 22;

22 Declaration & Initialization of variable float x, y, z; // value here considers as ‘double’ type x = 10.35; x = 10.35f; y = 24.56F; z = y;

23 Declaration & Initialization of variable long m = L; System.out.println(“The value of m is “ + m); Output: The value of m is

24 Declaration & Initialization of variable Character & Strings char ch = ‘A’; String s1= “This is Testing”; //String is a class provide by Java.

25 Guess the Output Class test { public static void main(String s[]) { char c; boolean flg; int a; System.out.println(c); System.out.println(flg); System.out.println(a); }