1. An Introduction A Programming Language A Technology Java Development Kit Java API One Language: Three Editions Standard Edition Enterprise Edition.

Slides:



Advertisements
Similar presentations
1 Copyright © 2005, Oracle. All rights reserved. Introducing the Java and Oracle Platforms.
Advertisements

Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Lab#1 (14/3/1431h) Introduction To java programming cs425
The Java Language. Topics of this Course  Introduction to Java  The Java Language  Object Oriented Programming in Java  Exceptions Handling  Threads.
Introduction to Java The objectives of this chapter are: To describe the key aspects of Java To describe the Java software development kit (SDK) To explain.
Object Orientated Programming
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.
Java for High Performance Computing Jordi Garcia Almiñana 14 de Octubre de 1998 de la era post-internet.
Introduction to Java.
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.
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.
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 PAL.  Contains the development kit and the runtime environment ( aka the Java Virtual Machine )  Download Link:
CMSC 202 Computer Science II for Majors Fall 2009 Introduction.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
Java program.
Java program. Java Tutorial Java technology is widely used currently. Let's start learning of java from basic questions like what is java, where it is.
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.
Introduction to Java Programming with JBuilder 4
Java Security. Topics Intro to the Java Sandbox Language Level Security Run Time Security Evolution of Security Sandbox Models The Security Manager.
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.
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 Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
Introduction to the Java Virtual Machine 井民全. JVM (Java Virtual Machine) the environment in which the java programs execute The specification define an.
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 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
University of Houston-Clear Lake Proprietary© 1997 Evolution of Programming Languages Basic cycle of improvement –Experience software difficulties –Theory.
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,
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.
Introduction and Features of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++
COP 3330 Notes 1/12. Today's topics Downloading Java and Eclipse Hello World Basic control structures Basic I/O Strings.
CPRG 215 Introduction to Object-Oriented Programming with Java Module 1-Introduction to Java Topic 1.1 Basics of Java Produced by Harvey Peters, 2008 Copyright.
Introduction to Java Programming. Introduction Course Objectives Organization of the Book.
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
4-Nov-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming Design Topic 1: The Java Environment Maj Joel.
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.
CT1513 Introduction To java © A.AlOsaimi.
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.
Introduction Mehdi Einali Advanced Programming in Java 1.
introductory lecture on java programming
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.
CPSC Developed by a team lead by James Gosling from Sun Microsystems – 1995 WORA (write once, run anywhere) – it is cross platform – no recompiling.
Introduction to Programming 1 1 2Introduction to Java.
Introduction to JAVA Programming
JAVA TRAINING IN NOIDA. JAVA Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented and specifically.
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Introduction CMSC 202 Fall Instructors Mr. Ryan Bergeron – Lecture Section 01 Tues/Thu 1:00 – 2:15 am, Sondheim 111 – Lecture Section 04 Tues/Thu.
Sachin Malhotra Saurabh Choudhary
Object Oriented Programming in
Before You Begin Nahla Abuel-ola /WIT.
Done By: Ashlee Lizarraga Ricky Usher Jacinto Roches Eli Gomez
Introduction Enosis Learning.
Introduction Enosis Learning.
Advanced Programming Fall 2017.
Java History, Editions, Version 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:

1

An Introduction A Programming Language A Technology Java Development Kit Java API One Language: Three Editions Standard Edition Enterprise Edition Micro Edition 2

History: A Quick View Developed by James Gosling in Originally named ‘Oak’. Version 1.0 released in Version 1.1 released in Version 1.2 released in Version 1.3 released in Version 1.4 released in Version 5.0(previously known as 1.5) released in

Language Features Object-oriented Platform independent Multi-threaded Auto memory management Robust Secure Dynamic binding Interfacing & enhancing legacy code 4

Features: Object-oriented Programming Methodologies: Programming around code (Structured Approach) Programming around data (OO Approach) OO Approach is more realistic & natural. Objects comprise state (data) & behavior (methods). Objects encapsulate data. An Object may use features of another object. Objects show polymorphic behavior. 5

Features: Platform Independent Java is based on the concept of WORA. Java code requires both compiler & interpreter. Java Compiler produces bytecode file (.class file). Bytecode is meant for JVM, not for real machine. JVM is specific to a platform & produces platform- specific machine code. 6

Features: Multi-threaded Multi-threading helps in achieving Multi-tasking. Java has language-level support of Multi-threading. A thread is an independent path of execution. Multi-threading saves wastage of CPU cycles. It makes the application more productive & responsive. 7

Features: Auto Memory Management In Java, we don’t need to care of de-allocation of garbage (Un-referenced objects). JVM delegates the job of garbage collection to a thread, called garbage collector. Working of garbage collector is monitored & controlled by JVM itself. 8

Features: Robust Java is a strongly typed language (that is, all variables must be assigned an explicit data type). Java has language-level support for exception handling. Java automatically checks the array boundary. It’s not the case of its predecessors. 9

Features: Secure Elimination of direct memory pointers & automatic array limit checking prevents rogue programs from reaching into sections of memory where they shouldn’t. Untrusted programs are restricted to run inside the virtual machine. Access to the platform can be strictly controlled by a security manager. Code is checked for pathologies by a class loader and a bytecode verifier. 10

Features: Interfacing & Enhancing Legacy Code Java’s strong graphics and networking capabilities can be applied to existing C programs. A Java graphical user interface (GUI) can bring enhanced ease of use to a C program, which then acts as a computational engine behind the GUI. 11

A very basic Java Application class FirstProgram{ public static void main(String [] argv) { System.out.print("This is my First Program"); } Steps:- 1. Save the source file as FirstProgram.java 2. On the command line, compile the source file javac FirstProgram.java 3. Execute the class java FirstProgram 12

Understanding the main() method main(String [] argv) method is the entry point for all Java applications. An application must have a class definition that includes a main(String [] argv) method. We execute the application by typing java at the command line, followed by the name of the class which contains the main method. argv refers to a 1-D array of String type. It’s generally used to retrieve command-line arguments. 13

Understanding Path & Classpath Path refers to the file-system location of an executable file. syntax:- set path = %path%;c:\program files\Java\jdk1.5\bin Classpath refers to the file-system location of a.class file or.jar file. syntax:- set classpath = %classpath%;c:\JavaPrograms 14

15

16