What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

In Review JAVA C++ GUIs - Windows Webopedia.com.
L1:CSC © Dr. Basheer M. Nasef Lecture #1 By Dr. Basheer M. Nasef.
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Java By Ajay Tripathi. Pre requisites…..  C and C++  OOP  Internet and WWW.
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.
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
Session-02. Objective In this session you will learn : What is Class Loader ? What is Byte Code Verifier? JIT & JAVA API Features of Java Java Environment.
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.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
TCU CoSc Introduction to Programming (with Java) Course Introduction.
Java Introduction 劉登榮 Deng-Rung Liu 87/7/15. Outline 4 History 4 Why Java? 4 Java Concept 4 Java in Real World 4 Language Overview 4 Java Performance!?
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Chapter 1 Coding Introduction.
+ 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.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
Introduction to Java Kumar Harshit. Objectives ( 목적지 ) At the end of the lesson, the student should be able to: ● Describe the features of Java technology.
Java Workshop for Teachers May 6, 2005 A Brief Look at the Java Programming Language.
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.
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.
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.
111 © 2002, Cisco Systems, Inc. All rights reserved.
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.
University of Houston-Clear Lake Proprietary© 1997 Evolution of Programming Languages Basic cycle of improvement –Experience software difficulties –Theory.
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++
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to Programs.
Chapter 2: A Brief History Object- Oriented Programming Presentation slides for Object-Oriented Programming by Yahya Garout KFUPM Information & Computer.
 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.
We will talking about story of JAVA language. By Kristsada Songpartom.
Java: An Overview John R Durrett Texas Tech University.
1 The JAVA Language Object Oriented Technology Mithani Binjan M.
Introduction Mehdi Einali Advanced Programming in Java 1.
Java – in context Main Features From Sun Microsystems ‘White Paper’
JAVA Ekapap Julnonyang When it was implemented? Developed by Sun Microsystems. The first public implementation was Java 1.0 in 1995 The language.
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.
Introduction to JAVA Programming
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.
Chapter 1 Coding Introduction.
Object Oriented Programming in
Done By: Ashlee Lizarraga Ricky Usher Jacinto Roches Eli Gomez
Chapter 1 Introduction to Computers, Programs, and Java
Introduction Enosis Learning.
An Overview of Java.
Chapter 1 FOUNDATIONS OF JAVA
Introduction Enosis Learning.
Chapter 1 Coding Introduction.
Unit 41 – Programing in Java
Advanced Programming Fall 2017.
(Computer fundamental Lab)
Java History, Editions, Version Features
By Rajanikanth B Overview Of Java By Rajanikanth B
Java Evolution Java History. Java Features.
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:

What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable, high-performance, multithreaded, dynamic language

Java is simple Java is partially modeled on C++ but greatly simplified and improved. Examples: Pointers & multiple inheritance often make programming complicated. Java replaces the multiple inheritance in C++ with a simple language construct and eliminates pointers. Java uses automatic memory allocation and garbage collection.

Java is Object-Oriented There are over 100 programming languages Popular languages: FORTRAN, COBOL, Visual BASIC, Pascal, Ada, C, C++ Each language was designed for a specific purpose. All except for C++ are known as procedural programming languages.

Object Oriented In a procedural language, a problem is solved using the paradigm of procedures. OOP models the real world in terms of objects. Programming in Java is centered on creating objects, manipulating objects, and making objects work together.

Java is Distributed Distributed computing involves several computers working together on a network. Networking capability is inherently integrated into Java so writing network programs is like sending and receiving data to and from a file.

Java is compiled and interpreted The Java platform has a compiler that translates Java source into a form called bytecodes Bytecode is an architecturally neutral representation of code written in the Java programming language. It is machine- independent and can run on any machine that has a Java interpreter. The bytecode rather than Java source code, is interpreted when you run a Java program.

Java is robust Robust means reliable. Java has eliminated certain error-prone programming constructs found in other languages. It doesn’t support pointers, for example, thereby eliminating the possibility of overwriting memory and corrupting data. Java has a runtime exception-handling feature to provide programming support for robustness. The programmer must write the code to deal with exceptions.

Java is Secure This is essential since it lends itself to programming for the Internet & WWW If you download a Java applet and run it on your computer, it will not damage your system because Java implements several security mechanisms. Java security is based on the premise that nothing should be trusted.

Java is architecture neutral The language allows for no implementation-defined features. Example: the size of a variable int All Java programs must be compiled into bytecodes before the JVM can run them.

Java is Portable Java programs can be run on any platform without being recompiled, making them very portable. There are no platform-specific features in Java (size of an int).

Java’s Performance Surprisingly good compared to other interpreted languages The new Java Development Kit uses the technology known as just-in- time compilation. JVM searches for hot spots (parts of the bytecode executed frequently) JIT compiler translates the hot spots into underlying machine language

Java is multithreaded This is the capability for a program to perform several tasks simultaneously within a program Example: Download a video file while playing the video Used in graphical user interfaces (listen to an audio recording while surfing a Web page) Used in network programming (a server can serve multiple clients at the same time). Classes are provided from the base language package to create and manage threads

Java is Dynamic Java was designed to adapt to an evolving environment. You can freely add new methods to a class without affecting its clients. Example: In the Circle class, you can add a new data property to indicate the color of the circle or a new method to obtain the circumference of the circle. The original client program that uses the circle class remains the same. Also, at runtime Java loads classes as they are needed.

History of Java Story starts in early 1990s Sun Microsystems was working on consumer electronics with the objective of keeping price down. Software for consumer electronics is developed on the cheapest chips available If a different chip set becomes cheaper, the developers must switch to that chip. Sun’s goal -- develop software that was portable so that it could be switched quickly to new hardware.

History Continued The Green project started in 1991 and the goal was to create an experimental, hand- held computer (PDA) called the *7, intended for controlling home appliances. James Gosling was the technical leader of the project. A language was developed for the *7 project which was called Oak. The *7 never became a product but due to the explosion in popularity of the WWW, the team saw that the language could be very useful.

History continued The language was first called Oak (after an oak tree outside Goslings window). However, there was already a language named Oak so the team named the language Java (in recognition of the role that caffeine plays in software development. Sun formally announced Java at a major conference in 1995.

History Continued Major byproduct of the Green project was “Duke” Duke was the ebodiment of the “agent” in the Green user interface. Became the Java mascot.