Java Programming: Advanced Topics1 Introduction to Advanced Java Programming Chapter 1.

Slides:



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

Liang, Introduction to Java Programming, Sixth Edition, (c) 2005 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
Introduction to Java Kiyeol Ryu Java Programming Language.
1 Introduction to Java and Applet Lecture 3 from Chapters 1 and 2 of the complete reference.
Introduction to Java Programming, 4E
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
J2EE Java2 Enterprise Edition by Damian Borth. Contents Introduction Architectures styles Components Scenarios Roles Processing a HTTP request.
For more Lectures and Notes Visit
J2EE Java 2 Enterprise Edition. Relevant Topics in The Java Tutorial Topic Web Page JDBC orial/jdbc
Application Architectures Vijayan Sugumaran Department of DIS Oakland University.
1 Java Server Pages Can web pages be created specially for each user? What part does Java play?
Introduction to the JDK Java for Computational Finance
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.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
BASIC JAVA PROGRAMMING TUTORIAL. History  James Gosling and Sun Microsystems  Oak  Java, May 20, 1995, Sun World  Hot Java –The first Java-enabled.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Introduction to Java Programming with JBuilder 4
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
S.W. Ma/CIM/LWL41211/2 Prog. IIA Page 1 HKIVE (Lee Wai Lee Campus) Department of CIM Course : Year 2 Module : Programming IIA Textbook : Introduction.
©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 11 Reality Check: Java Programming in the Real World.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
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.
Chapter 1: Creating Java Programs
Sadegh Aliakbary Sharif University of Technology Fall 2010.
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,
Introduction to J2EE Architecture Portions by Kunal Mehta.
|Tecnologie Web L-A Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat
® IBM Software Group © 2007 IBM Corporation J2EE Web Component Introduction
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.
The Basics of Javadoc Presented By: Wes Toland. Outline  Overview  Background  Environment  Features Javadoc Comment Format Javadoc Program HTML API.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
Jaeki Song ISQS6337 JAVA Lecture 03 Introduction to Java -The First Java Application-
Introduction to Java Programming with Forte Y. Daniel Liang.
1 Programming Fundamentals AITI-GP. 2 Introduction to Programming.
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Introduction to Java Programming. Introduction Course Objectives Organization of the Book.
Java Applets. 2 Introduction to Java Applet Programs Applications are ___________________ programs –executed with Java interpreter Applet is a small program.
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.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
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.
Introduction to Java Programming. 2 Chapter 1 Introduction to Java and Forte F What Is Java? F Getting Started With Java Programming –Create, Compile.
Java Programming: Advanced Topics 1 Enterprise JavaBeans Chapter 14.
1 Introduction to Java. 2 * 10% Assignments/ class participation * 10% Pop Quizzes * 05% Attendance * 25% Mid Term * 50% Final Term.
ITP 109 Week 2 Trina Gregory Introduction to Java.
Apache Struts Technology A MVC Framework for Java Web Applications.
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.
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Introduction.
Introduction to JAVA Programming
Introduction to Java Programming, 4E Y. Daniel Liang.
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
J2EE Platform Overview (Application Architecture)
Chapter 1 Introduction to Computers, Programs, and Java
Introduction to Advanced Java Programming
Advanced Programming Fall 2017.
Chapter 1 Introduction to Computers, Programs, and Java
Java History, Editions, Version 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:

Java Programming: Advanced Topics1 Introduction to Advanced Java Programming Chapter 1

Java Programming: Advanced Topics2 Objectives Review what Java is and differences between the three editions of the Java 2 platform: J2SE, J2EE, and J2ME Explore the context in which Java and related technologies are evolving See how Java supports object-oriented programming and look at some popular design patterns

Java Programming: Advanced Topics3 Objectives (Cont.) Learn how to use the basic tools that version of Java 2 Software Development Kit provides, especially javac, java, javadoc, and jar

Java Programming: Advanced Topics4 Overview of the Java Platform The Java language is object-oriented Java code is architecture-neutral and portable Java is network-savvy Java programs are secure Java is high performance

Java Programming: Advanced Topics5 Java Programs and Components JavaBeans: classes or program components that conform to strict programming conventions Applets: components that can be launched from HTML documents and run in a Web browser or applet viewer utility Servlets: components that generate content for Web pages at runtime Enterprise JavaBeans (EJBs): server-side components used in distributed enterprise environments

Java Programming: Advanced Topics6 The Three Editions of the Java 2 Platform The Java 2 platform comes in three versions: –Java 2 Standard Edition (J2SE) –Java 2 Enterprise Edition (J2EE) –Java 2 Micro Edition (J2ME)

Java Programming: Advanced Topics7 Containers in the n-Tier J2EE Architecture

Java Programming: Advanced Topics8 A Brief History of the Java Platform 1995: Version 1.0 (Sun Microsystems) 1997: Version : Java 2 platform 1999: J2SE, J2EE, and J2ME 2001: Version 1.3 of J2SE 2002: Version : Version 1.3 of J2EE

Java Programming: Advanced Topics9 Object-Oriented Programming in Java The key benefits of object-oriented programming are: –code reuse –flexibility to respond to changing circumstances and requirements –ease of maintenance

Java Programming: Advanced Topics10 Object-Oriented Programming in Java (Cont.) A program is a collection of objects that send messages to each other Object-oriented analysis and design (OOAD): –First stage: perform object-oriented problem analysis –Second stage: Identify classes to be implemented Identify fields and methods the classes must contain to model the behavior of real-life objects

Java Programming: Advanced Topics11 Object-Oriented Methodology Java lends itself to iterative and incremental object-oriented development methodology In large projects, functionality is typically added in stages and each identifiable stage is an increment An iteration is a short-term development cycle within an increment

Java Programming: Advanced Topics12 Object-Oriented Features of Java Java supports the following fundamental features of all object-oriented languages: –Abstract data types –Encapsulation –Inheritance –Polymorphism

Java Programming: Advanced Topics13 Design Patterns and Frameworks Design pattern: proposed solution to common design problem Frameworks: collections of reusable classes Popular design patterns : –Model-View-Controller design pattern –Singleton design pattern –Factory design pattern –Adapter design pattern –Façade design pattern

Java Programming: Advanced Topics14 Model-View-Controller Design Pattern

Java Programming: Advanced Topics15 An Implementation of the Singleton Design Pattern

Java Programming: Advanced Topics16 An Implementation of the Factory Design Pattern

Java Programming: Advanced Topics17 Standard SDK Tools The Java platform includes a tool set for developing Java programs The J2SDK tools run only in a command- line window and provide basic functionality

Java Programming: Advanced Topics18 Standard SDK Tools (Cont.) Standard J2SDK tools: –javac compiler –java launcher –javadoc documentation builder –jar packaging utility

Java Programming: Advanced Topics19 How the Launcher Finds Classes Java command locates bytecode files by class name Launcher loads bytecode from the file with the extension.class and with the case- sensitive base filename that matches the class name

Java Programming: Advanced Topics20 How the Compiler Finds Classes For public classes –Source file must have the same name as the class –Every public class must be in a separate file javac command has a -sourcepath option to specify the location of input source files when different from the location of compiled classes

Java Programming: Advanced Topics21 javadoc Comments The javadoc tool is a utility for generating HTML documentation directly from comments in Java source code Doc comments –Start with a slash and two asterisks (/**) –Terminate with one asterisk and a slash (*/)

Java Programming: Advanced Topics22 javadoc Comments (Cont.) Doc comments can appear before the following kinds of declarations: –Class –Interface –Field –Method

Java Programming: Advanced Topics23 javadoc Comments (Cont.)

Java Programming: Advanced Topics24 Creating HTML from javadoc To get HTML output in the standard format, run the javadoc program Doclet: plug-in program for javadoc that formats and outputs required documentation The javadoc tool –Preprocesses doc comments into a data structure –Delegates to a doclet conversion of data into output

Java Programming: Advanced Topics25 An index.html File Generated by javadoc

Java Programming: Advanced Topics26 Packaging Programs for Distribution The standard way to distribute J2SE is to combine files into a Java archive file using the jar tool Before running the jar tool, make sure your files are in the proper folders

Java Programming: Advanced Topics27 Summary The Java 2 platform comes in three versions: Java 2 Standard Edition (J2SE), Java 2 Enterprise Edition (J2EE), and Java2 Micro Edition (J2ME). You can write different kinds of programs in Java including standalone applications, applets, servlets and JSPs, JavaBeans and Enterprise JavaBeans (EJBs).

Java Programming: Advanced Topics28 Summary (Cont.) Java is an object-oriented language and lends itself to the creation of reusable components. Java language supports abstract data types, encapsulation, inheritance, and polymorphism, uses iterative and incremental methodology, and implements design patterns. The SDK includes command line tools: the javac compiler, java launcher, javadoc documentation builder, and jar packaging utility.