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

Slides:



Advertisements
Similar presentations
Java EE - Introduction -
Advertisements

Question examples. Session 1 Objectives Why certify? Positioning of the non-technical version What is Java? Key advantages of Java Java Applications vs.
Chapter 1: The Database Environment
19 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Developing Web Services.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
7 Copyright © 2005, Oracle. All rights reserved. Maintaining State in J2EE Applications.
18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
4 Copyright © 2005, Oracle. All rights reserved. Creating the Web Tier: Servlets.
11 Copyright © 2005, Oracle. All rights reserved. Creating the Business Tier: Enterprise JavaBeans.
3 Copyright © 2005, Oracle. All rights reserved. Designing J2EE Applications.
3 Copyright © 2005, Oracle. All rights reserved. Basic Java Syntax and Coding Conventions.
15 Copyright © 2005, Oracle. All rights reserved. Container-Managed Relationships (CMRs)
8 Copyright © 2005, Oracle. All rights reserved. Creating the Web Tier: JavaServer Pages.
J2EE Overview.
6 Copyright © 2005, Oracle. All rights reserved. Building Applications with Oracle JDeveloper 10g.
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore G54PRG Programming Lecture 1 Amadeo Ascó 3 Java Programming Language.
Enterprise Java and Data Services Designing for Broadly Available Grid Data Access Services.
Software change management
The World Wide Web. 2 The Web is an infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that.
Database System Concepts and Architecture
Executional Architecture
25 seconds left…...
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.
Lab#1 (14/3/1431h) Introduction To java programming cs425
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
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
CS2200 Software Development Lecture: Java Platform Lecturer: Adrian O’Riordan Course Webpage:
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.
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.
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
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.
 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
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
1.8History of Java Java –Based on C and C++ –Originally developed in early 1991 for intelligent consumer electronic devices Market did not develop, project.
Session 1 Introduction to Java. Objectives Java Simplified / Session 1 / 2 of 32 Explain the history of Java Explain Java in brief List the types of Java.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
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.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
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.
Java – in context Main Features From Sun Microsystems ‘White Paper’
Java Programming: Advanced Topics1 Introduction to Advanced Java Programming Chapter 1.
1 Introduction Read D&D Sec 1.8; Sec 1.13 THE Java tutorial -
Introduction to Programming 1 1 2Introduction to Java.
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.
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.
Applications Active Web Documents Active Web Documents.
Object Oriented Programming in
Introducing the Java and Oracle Platforms
Before You Begin Nahla Abuel-ola /WIT.
Introduction to Advanced Java Programming
Java programming lecture one
Introduction Enosis Learning.
Introduction Enosis Learning.
(Computer fundamental Lab)
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:

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

1-2 Copyright © 2005, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Identify the key elements of Java Describe the Java Virtual Machine (JVM) Examine how Java is used to build applications Identify the key components of the J2SE Java Development Kit (known as JDK or SDK) Describe Java deployment options

1-3 Copyright © 2005, Oracle. All rights reserved. What Is Java? Java: Is a platform and an object-oriented language Was originally designed by Sun Microsystems for consumer electronics Contains a class library Uses a virtual machine for program execution

1-4 Copyright © 2005, Oracle. All rights reserved. Key Benefits of Java Object-oriented Interpreted and platform-independent Dynamic and distributed Multithreaded Robust and secure

1-5 Copyright © 2005, Oracle. All rights reserved. Notes Page

1-6 Copyright © 2005, Oracle. All rights reserved. An Object-Oriented Approach Objects and classes –An object is a run-time representation of a thing. –A class is a static definition of things. Class models elaborate: –Existing classes and objects –Behavior, purpose, and structure –Relationships between classes –Relationships between run-time objects Same models exist throughout the project. AnalysisImplementation Integration and testing Design CLASS MODELS

1-7 Copyright © 2005, Oracle. All rights reserved. Platform Independence Java source code is stored as text in a.java file. The.java file is compiled into.class files. A.class file contains Java bytecodes (instructions). The bytecodes are interpreted at run time. –The Java.class file is the executable code. Compile Movie.java JVM Running program Movie.class (javac)(java)

1-8 Copyright © 2005, Oracle. All rights reserved. Using Java with Enterprise Internet Computing Web server Application server Presentation Business logic Servlets JavaServer Pages (JSPs) Enterprise JavaBeans (EJB) CORBA ClientData

1-9 Copyright © 2005, Oracle. All rights reserved. Notes Page

1-10 Copyright © 2005, Oracle. All rights reserved. Using the Java Virtual Machine Operating system JVM Application

1-11 Copyright © 2005, Oracle. All rights reserved. Notes Page

1-12 Copyright © 2005, Oracle. All rights reserved. How Does JVM Work? The class loader loads all required classes. –JVM uses a CLASSPATH setting to locate class files. JVM Verifier checks for illegal bytecodes. JVM Verifier executes bytecodes. –JVM may invoke a Just-In-Time (JIT) compiler. Memory Manager releases memory used by the dereferenced object back to the OS. –JVM handles Garbage collection.

1-13 Copyright © 2005, Oracle. All rights reserved. Notes Page

1-14 Copyright © 2005, Oracle. All rights reserved. Benefits of Just-In-Time (JIT) Compilers JIT compilers: Improve performance Are useful if the same bytecodes are executed repeatedly Translate bytecodes to native instruction Optimize repetitive code, such as loops Use Java HotSpot VM for better performance and reliability

1-15 Copyright © 2005, Oracle. All rights reserved. Notes Page

1-16 Copyright © 2005, Oracle. All rights reserved. Implementing Security in the Java Environment Interface-specific access Class loader Bytecode verifier Language and compiler

1-17 Copyright © 2005, Oracle. All rights reserved. Notes Page

1-18 Copyright © 2005, Oracle. All rights reserved. Deployment of Java Applications Client-side deployment: –JVM runs stand-alone applications from the command line –Classes load from a local disk, eliminating the need to load classes over a network Server-side deployment: –Serves multiple clients from a single source –Is compatible with a multitier model for Internet computing

1-19 Copyright © 2005, Oracle. All rights reserved. Using Java with Oracle 10g Oracle database Web server Client Application server Presentation Business logic Data Oracle Application Server

1-20 Copyright © 2005, Oracle. All rights reserved. Java Software Development Kit Sun Java J2SE (known as JDK and Java SDK) provides: Compiler (javac) Core class library – classes.zip – rt.jar Debugger ( jdb ) Bytecode interpreter: The JVM (java) Documentation generator (javadoc) Java Archive utility ( jar ) Others J2SE

1-21 Copyright © 2005, Oracle. All rights reserved. Using the Appropriate Development Kit Java2 comes in three sizes: J2ME (Micro Edition): Version specifically targeted at the consumer space J2SE (Standard Edition): Complete ground-up development environment for the Internet J2EE (Enterprise Edition): Everything in the J2SE plus an application server and prototyping tools

1-22 Copyright © 2005, Oracle. All rights reserved. Integrated Development Environment Development UML ADF XML SCM Debug Exchange Database HTML Deployment Synchronized changes

1-23 Copyright © 2005, Oracle. All rights reserved. Exploring the JDeveloper Environment System NavigatorCode EditorProperty Inspector Component Palette

1-24 Copyright © 2005, Oracle. All rights reserved. Oracle 10g Products

1-25 Copyright © 2005, Oracle. All rights reserved. Summary In this lesson, you should have learned the following: Java code is compiled into platform-independent bytecodes. Bytecodes are interpreted by JVM. Java applications can be stand-alone or implemented across an Internet-computing model.

1-26 Copyright © 2005, Oracle. All rights reserved.