🗊 Презентация Internet and Java Foundations, Programming and Practice

Нажмите для полного просмотра!
Internet and Java Foundations, Programming and Practice, слайд №1 Internet and Java Foundations, Programming and Practice, слайд №2 Internet and Java Foundations, Programming and Practice, слайд №3 Internet and Java Foundations, Programming and Practice, слайд №4 Internet and Java Foundations, Programming and Practice, слайд №5 Internet and Java Foundations, Programming and Practice, слайд №6 Internet and Java Foundations, Programming and Practice, слайд №7 Internet and Java Foundations, Programming and Practice, слайд №8 Internet and Java Foundations, Programming and Practice, слайд №9 Internet and Java Foundations, Programming and Practice, слайд №10 Internet and Java Foundations, Programming and Practice, слайд №11 Internet and Java Foundations, Programming and Practice, слайд №12 Internet and Java Foundations, Programming and Practice, слайд №13 Internet and Java Foundations, Programming and Practice, слайд №14 Internet and Java Foundations, Programming and Practice, слайд №15 Internet and Java Foundations, Programming and Practice, слайд №16 Internet and Java Foundations, Programming and Practice, слайд №17 Internet and Java Foundations, Programming and Practice, слайд №18 Internet and Java Foundations, Programming and Practice, слайд №19 Internet and Java Foundations, Programming and Practice, слайд №20 Internet and Java Foundations, Programming and Practice, слайд №21 Internet and Java Foundations, Programming and Practice, слайд №22 Internet and Java Foundations, Programming and Practice, слайд №23 Internet and Java Foundations, Programming and Practice, слайд №24 Internet and Java Foundations, Programming and Practice, слайд №25 Internet and Java Foundations, Programming and Practice, слайд №26 Internet and Java Foundations, Programming and Practice, слайд №27 Internet and Java Foundations, Programming and Practice, слайд №28 Internet and Java Foundations, Programming and Practice, слайд №29 Internet and Java Foundations, Programming and Practice, слайд №30 Internet and Java Foundations, Programming and Practice, слайд №31 Internet and Java Foundations, Programming and Practice, слайд №32 Internet and Java Foundations, Programming and Practice, слайд №33 Internet and Java Foundations, Programming and Practice, слайд №34 Internet and Java Foundations, Programming and Practice, слайд №35 Internet and Java Foundations, Programming and Practice, слайд №36 Internet and Java Foundations, Programming and Practice, слайд №37 Internet and Java Foundations, Programming and Practice, слайд №38 Internet and Java Foundations, Programming and Practice, слайд №39 Internet and Java Foundations, Programming and Practice, слайд №40 Internet and Java Foundations, Programming and Practice, слайд №41 Internet and Java Foundations, Programming and Practice, слайд №42 Internet and Java Foundations, Programming and Practice, слайд №43 Internet and Java Foundations, Programming and Practice, слайд №44 Internet and Java Foundations, Programming and Practice, слайд №45 Internet and Java Foundations, Programming and Practice, слайд №46 Internet and Java Foundations, Programming and Practice, слайд №47 Internet and Java Foundations, Programming and Practice, слайд №48 Internet and Java Foundations, Programming and Practice, слайд №49 Internet and Java Foundations, Programming and Practice, слайд №50 Internet and Java Foundations, Programming and Practice, слайд №51 Internet and Java Foundations, Programming and Practice, слайд №52 Internet and Java Foundations, Programming and Practice, слайд №53 Internet and Java Foundations, Programming and Practice, слайд №54 Internet and Java Foundations, Programming and Practice, слайд №55 Internet and Java Foundations, Programming and Practice, слайд №56 Internet and Java Foundations, Programming and Practice, слайд №57 Internet and Java Foundations, Programming and Practice, слайд №58 Internet and Java Foundations, Programming and Practice, слайд №59 Internet and Java Foundations, Programming and Practice, слайд №60 Internet and Java Foundations, Programming and Practice, слайд №61 Internet and Java Foundations, Programming and Practice, слайд №62 Internet and Java Foundations, Programming and Practice, слайд №63 Internet and Java Foundations, Programming and Practice, слайд №64 Internet and Java Foundations, Programming and Practice, слайд №65 Internet and Java Foundations, Programming and Practice, слайд №66 Internet and Java Foundations, Programming and Practice, слайд №67 Internet and Java Foundations, Programming and Practice, слайд №68 Internet and Java Foundations, Programming and Practice, слайд №69 Internet and Java Foundations, Programming and Practice, слайд №70 Internet and Java Foundations, Programming and Practice, слайд №71 Internet and Java Foundations, Programming and Practice, слайд №72 Internet and Java Foundations, Programming and Practice, слайд №73 Internet and Java Foundations, Programming and Practice, слайд №74 Internet and Java Foundations, Programming and Practice, слайд №75 Internet and Java Foundations, Programming and Practice, слайд №76 Internet and Java Foundations, Programming and Practice, слайд №77 Internet and Java Foundations, Programming and Practice, слайд №78 Internet and Java Foundations, Programming and Practice, слайд №79 Internet and Java Foundations, Programming and Practice, слайд №80 Internet and Java Foundations, Programming and Practice, слайд №81 Internet and Java Foundations, Programming and Practice, слайд №82 Internet and Java Foundations, Programming and Practice, слайд №83 Internet and Java Foundations, Programming and Practice, слайд №84 Internet and Java Foundations, Programming and Practice, слайд №85 Internet and Java Foundations, Programming and Practice, слайд №86 Internet and Java Foundations, Programming and Practice, слайд №87 Internet and Java Foundations, Programming and Practice, слайд №88 Internet and Java Foundations, Programming and Practice, слайд №89 Internet and Java Foundations, Programming and Practice, слайд №90 Internet and Java Foundations, Programming and Practice, слайд №91 Internet and Java Foundations, Programming and Practice, слайд №92 Internet and Java Foundations, Programming and Practice, слайд №93 Internet and Java Foundations, Programming and Practice, слайд №94 Internet and Java Foundations, Programming and Practice, слайд №95 Internet and Java Foundations, Programming and Practice, слайд №96 Internet and Java Foundations, Programming and Practice, слайд №97 Internet and Java Foundations, Programming and Practice, слайд №98 Internet and Java Foundations, Programming and Practice, слайд №99 Internet and Java Foundations, Programming and Practice, слайд №100 Internet and Java Foundations, Programming and Practice, слайд №101 Internet and Java Foundations, Programming and Practice, слайд №102 Internet and Java Foundations, Programming and Practice, слайд №103 Internet and Java Foundations, Programming and Practice, слайд №104 Internet and Java Foundations, Programming and Practice, слайд №105 Internet and Java Foundations, Programming and Practice, слайд №106 Internet and Java Foundations, Programming and Practice, слайд №107 Internet and Java Foundations, Programming and Practice, слайд №108 Internet and Java Foundations, Programming and Practice, слайд №109 Internet and Java Foundations, Programming and Practice, слайд №110 Internet and Java Foundations, Programming and Practice, слайд №111 Internet and Java Foundations, Programming and Practice, слайд №112 Internet and Java Foundations, Programming and Practice, слайд №113 Internet and Java Foundations, Programming and Practice, слайд №114 Internet and Java Foundations, Programming and Practice, слайд №115 Internet and Java Foundations, Programming and Practice, слайд №116 Internet and Java Foundations, Programming and Practice, слайд №117 Internet and Java Foundations, Programming and Practice, слайд №118 Internet and Java Foundations, Programming and Practice, слайд №119 Internet and Java Foundations, Programming and Practice, слайд №120 Internet and Java Foundations, Programming and Practice, слайд №121 Internet and Java Foundations, Programming and Practice, слайд №122 Internet and Java Foundations, Programming and Practice, слайд №123 Internet and Java Foundations, Programming and Practice, слайд №124 Internet and Java Foundations, Programming and Practice, слайд №125 Internet and Java Foundations, Programming and Practice, слайд №126 Internet and Java Foundations, Programming and Practice, слайд №127 Internet and Java Foundations, Programming and Practice, слайд №128 Internet and Java Foundations, Programming and Practice, слайд №129 Internet and Java Foundations, Programming and Practice, слайд №130 Internet and Java Foundations, Programming and Practice, слайд №131 Internet and Java Foundations, Programming and Practice, слайд №132 Internet and Java Foundations, Programming and Practice, слайд №133 Internet and Java Foundations, Programming and Practice, слайд №134 Internet and Java Foundations, Programming and Practice, слайд №135 Internet and Java Foundations, Programming and Practice, слайд №136 Internet and Java Foundations, Programming and Practice, слайд №137 Internet and Java Foundations, Programming and Practice, слайд №138 Internet and Java Foundations, Programming and Practice, слайд №139 Internet and Java Foundations, Programming and Practice, слайд №140 Internet and Java Foundations, Programming and Practice, слайд №141 Internet and Java Foundations, Programming and Practice, слайд №142 Internet and Java Foundations, Programming and Practice, слайд №143 Internet and Java Foundations, Programming and Practice, слайд №144 Internet and Java Foundations, Programming and Practice, слайд №145 Internet and Java Foundations, Programming and Practice, слайд №146 Internet and Java Foundations, Programming and Practice, слайд №147 Internet and Java Foundations, Programming and Practice, слайд №148 Internet and Java Foundations, Programming and Practice, слайд №149 Internet and Java Foundations, Programming and Practice, слайд №150 Internet and Java Foundations, Programming and Practice, слайд №151 Internet and Java Foundations, Programming and Practice, слайд №152 Internet and Java Foundations, Programming and Practice, слайд №153 Internet and Java Foundations, Programming and Practice, слайд №154 Internet and Java Foundations, Programming and Practice, слайд №155 Internet and Java Foundations, Programming and Practice, слайд №156 Internet and Java Foundations, Programming and Practice, слайд №157 Internet and Java Foundations, Programming and Practice, слайд №158 Internet and Java Foundations, Programming and Practice, слайд №159 Internet and Java Foundations, Programming and Practice, слайд №160 Internet and Java Foundations, Programming and Practice, слайд №161 Internet and Java Foundations, Programming and Practice, слайд №162 Internet and Java Foundations, Programming and Practice, слайд №163 Internet and Java Foundations, Programming and Practice, слайд №164 Internet and Java Foundations, Programming and Practice, слайд №165 Internet and Java Foundations, Programming and Practice, слайд №166 Internet and Java Foundations, Programming and Practice, слайд №167 Internet and Java Foundations, Programming and Practice, слайд №168 Internet and Java Foundations, Programming and Practice, слайд №169 Internet and Java Foundations, Programming and Practice, слайд №170 Internet and Java Foundations, Programming and Practice, слайд №171 Internet and Java Foundations, Programming and Practice, слайд №172 Internet and Java Foundations, Programming and Practice, слайд №173 Internet and Java Foundations, Programming and Practice, слайд №174 Internet and Java Foundations, Programming and Practice, слайд №175 Internet and Java Foundations, Programming and Practice, слайд №176 Internet and Java Foundations, Programming and Practice, слайд №177 Internet and Java Foundations, Programming and Practice, слайд №178 Internet and Java Foundations, Programming and Practice, слайд №179 Internet and Java Foundations, Programming and Practice, слайд №180 Internet and Java Foundations, Programming and Practice, слайд №181 Internet and Java Foundations, Programming and Practice, слайд №182 Internet and Java Foundations, Programming and Practice, слайд №183 Internet and Java Foundations, Programming and Practice, слайд №184 Internet and Java Foundations, Programming and Practice, слайд №185 Internet and Java Foundations, Programming and Practice, слайд №186 Internet and Java Foundations, Programming and Practice, слайд №187 Internet and Java Foundations, Programming and Practice, слайд №188 Internet and Java Foundations, Programming and Practice, слайд №189 Internet and Java Foundations, Programming and Practice, слайд №190 Internet and Java Foundations, Programming and Practice, слайд №191 Internet and Java Foundations, Programming and Practice, слайд №192 Internet and Java Foundations, Programming and Practice, слайд №193 Internet and Java Foundations, Programming and Practice, слайд №194 Internet and Java Foundations, Programming and Practice, слайд №195 Internet and Java Foundations, Programming and Practice, слайд №196 Internet and Java Foundations, Programming and Practice, слайд №197 Internet and Java Foundations, Programming and Practice, слайд №198 Internet and Java Foundations, Programming and Practice, слайд №199 Internet and Java Foundations, Programming and Practice, слайд №200 Internet and Java Foundations, Programming and Practice, слайд №201 Internet and Java Foundations, Programming and Practice, слайд №202 Internet and Java Foundations, Programming and Practice, слайд №203 Internet and Java Foundations, Programming and Practice, слайд №204 Internet and Java Foundations, Programming and Practice, слайд №205

Содержание

Вы можете ознакомиться и скачать презентацию на тему Internet and Java Foundations, Programming and Practice. Доклад-сообщение содержит 205 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1


Internet and Java Foundations, Programming and Practice
Описание слайда:
Internet and Java Foundations, Programming and Practice

Слайд 2


Agenda Internet and its Evolution Internet Tools Web and its Programming Java for Internet Programming Java Nuts and Bolts Java Platform Developing...
Описание слайда:
Agenda Internet and its Evolution Internet Tools Web and its Programming Java for Internet Programming Java Nuts and Bolts Java Platform Developing Applets and Applications Challenges and Future Directions

Слайд 3


What is the Internet ?
Описание слайда:
What is the Internet ?

Слайд 4


Internet Technology Evolution Internet is much bigger than what we think More than 25 years old More than doubling every year Technology effect...
Описание слайда:
Internet Technology Evolution Internet is much bigger than what we think More than 25 years old More than doubling every year Technology effect suddenly every body sees the need for a technology like the radio or the TV 10 terabytes flows everyday

Слайд 5


Internet Use of internet advertisement/elections/newspapers information is public Ubiquitous technology Network is the computer Intranets - internal...
Описание слайда:
Internet Use of internet advertisement/elections/newspapers information is public Ubiquitous technology Network is the computer Intranets - internal TCP/IP nets PC accounts for 55% of total IT Applications tied to platform - API lock-in

Слайд 6


Internet Evolution
Описание слайда:
Internet Evolution

Слайд 7


Early Internet Early Internet supported only email . File Transfer Protocol development - ftp sites. Network News was added to the Internet. Archie -...
Описание слайда:
Early Internet Early Internet supported only email . File Transfer Protocol development - ftp sites. Network News was added to the Internet. Archie - A program to canvass anonymous ftp sites and create a database of what is available Gopher- A menu-driven interface used to search for information. Archie and Gopher could answer questions only like ‘what FTP server contains info about “xxxx” ‘

Слайд 8


World Wide Web World Wide Web conceptualized by Tim Berners-Lee at CERN in Switzerland Concept of Hypertext led to the development of the Hypertext...
Описание слайда:
World Wide Web World Wide Web conceptualized by Tim Berners-Lee at CERN in Switzerland Concept of Hypertext led to the development of the Hypertext Markup Language (HTML) Tim Berners-Lee proposed the ‘Browser’ program Scientists at CERN designed a TCP/IP based protocol to share Hypertext information called HTTP. WWW officially is described as a” Wide-area hypermedia information retrieval initiative aiming to give universal access to a large universe of documents.

Слайд 9


HTML Hypertext -A little Hype and a Little Text. Hypertext point to information which can be local or remotely located. HTML -Derivative of the SGML(...
Описание слайда:
HTML Hypertext -A little Hype and a Little Text. Hypertext point to information which can be local or remotely located. HTML -Derivative of the SGML( Standard Generalized Markup Language). HTML -information , commands for the Browser for formatting documents. HTML -The de-facto language for publishing on the Internet. Hypermedia- Hyper-links to Multimedia.

Слайд 10


Internet Tools Browsers- A tool used to view documents on the WWW Web servers - Machines which run the HTTP-server Software that respond to HTTP...
Описание слайда:
Internet Tools Browsers- A tool used to view documents on the WWW Web servers - Machines which run the HTTP-server Software that respond to HTTP requests which it receives Authoring Tools - Editors specially made for editing HTML documents Filters -Tools to convert legacy documents to HTML format Scripting -Languages used for scripting WAIS- Wide Area Information Servers (WAIS) for indexing and doing full text searches

Слайд 11


How does the Web work ? Web -Designed around Client/Server Architecture Web Clients ( Web Browsers ) -send requests for documents to any Web Server...
Описание слайда:
How does the Web work ? Web -Designed around Client/Server Architecture Web Clients ( Web Browsers ) -send requests for documents to any Web Server Web Server -Program that responds to HTTP requests Hyperlink Web client connects to the specified Web Server The server responds by sending the information asked for The Browser formats the received HTML data and displays it

Слайд 12


How does the Web Work
Описание слайда:
How does the Web Work

Слайд 13


HTML document Centre for Development of Advanced Computing ... ... webmaster
Описание слайда:
HTML document Centre for Development of Advanced Computing ... ... webmaster

Слайд 14


Internet and Java Foundations, Programming and Practice, слайд №14
Описание слайда:

Слайд 15


URLs URLs- The Hypertext links we use today are known as Universal Resource Locator URLs-Each name is unique across the Internet An URL looks like...
Описание слайда:
URLs URLs- The Hypertext links we use today are known as Universal Resource Locator URLs-Each name is unique across the Internet An URL looks like this Parts of a URL are, Service type, System Name, Port, Directory path, Filename,Search Components or Variables Service type, System Name, Directory path are the required parts of the URL

Слайд 16


CGI (Common Gateway Interface) CGI makes the Web a Two-way interface CGI -lets the user run a script when a web page is accessed Information from the...
Описание слайда:
CGI (Common Gateway Interface) CGI makes the Web a Two-way interface CGI -lets the user run a script when a web page is accessed Information from the Web Client is received through simple ‘fill-in-the-forms’ kind of interface FORMS - Integrates data sheets, menus , check boxes CGI makes the Web interactive CGI -complicated to setup ,requires PERL knowledge HTML books talk less about CGI

Слайд 17


Authoring tools and Filters Authoring tools- Editors for HTML documents Editors similar to WYSIWYG word processing programs Semi-WYSIWYG or...
Описание слайда:
Authoring tools and Filters Authoring tools- Editors for HTML documents Editors similar to WYSIWYG word processing programs Semi-WYSIWYG or completely WYSIWYG Provide syntax checking and correction Filters -Convert legacy documents to HTML format Filters are useful when the documents already exist Authoring tools- HoTMetaL, HTML Assistant -Shareware

Слайд 18


Preconfigured v/s Integrated Internet Products Integrated Internet Products- From multiple vendors Preconfigured Systems- Web Server and a Client...
Описание слайда:
Preconfigured v/s Integrated Internet Products Integrated Internet Products- From multiple vendors Preconfigured Systems- Web Server and a Client ready to use Sun’s Netra Internet Server SGI’s WebFORCE Indy and WebFORCE Challenge S Apple’s Internet Server Solution DEC’s Internet AlphaServer Integraph’s Web Server 10

Слайд 19


Future Directions Additions to HTML (Grammar, Maths, Display control) VRML (Virtual Reality Markup Language) Security - Using Scrambling and...
Описание слайда:
Future Directions Additions to HTML (Grammar, Maths, Display control) VRML (Virtual Reality Markup Language) Security - Using Scrambling and Encryption Common Client Interface (CCI)- Allows Clients to pass information back and forth between the Browser and the External Viewer Charge Mechanisms Performance Enhancements- Sending a page and graphics for that page in one connection

Слайд 20


Interesting URLs ( The WhiteHouse) (Everything about the WWW) (Software on Sun) (India Net Foundation Services) telnet:// (Free Public Access Unix...
Описание слайда:
Interesting URLs ( The WhiteHouse) (Everything about the WWW) (Software on Sun) (India Net Foundation Services) telnet:// (Free Public Access Unix System) (Search engines, Add URL) (World Alumni on the net) (Free Email ) (Free Website,2MB space) (Offers virtual web servvices for compinies to host their website). (Kannada news paper on web)

Слайд 21


API Bottleneck
Описание слайда:
API Bottleneck

Слайд 22


The OS - Platform lock
Описание слайда:
The OS - Platform lock

Слайд 23


The Web
Описание слайда:
The Web

Слайд 24


Making life easier! Data on the web Browser platform independent Click on application - run on any machine Java the programming language of the 21...
Описание слайда:
Making life easier! Data on the web Browser platform independent Click on application - run on any machine Java the programming language of the 21 century

Слайд 25


Java and Java Computing
Описание слайда:
Java and Java Computing

Слайд 26


Java - An Introduction Java - The new programming language from Sun Microsystems Java -Allows anyone to publish a web page with Java code in it Java...
Описание слайда:
Java - An Introduction Java - The new programming language from Sun Microsystems Java -Allows anyone to publish a web page with Java code in it Java - CPU Independent language Created for consumer electronics Java - James , Arthur Van , and others Java -The name that survived a patent search Oak -The predecessor of Java Java is “C++ -- ++ “

Слайд 27


Java From 10,000 Ft. According to the world, Java is... According to Sun, Java is... On closer inspection, Java is
Описание слайда:
Java From 10,000 Ft. According to the world, Java is... According to Sun, Java is... On closer inspection, Java is

Слайд 28


According to the World, Java Is... Snazzy Web pages The cross-platform language we want The rest-of-the-worlds answer to Bill The C++ replacement we...
Описание слайда:
According to the World, Java Is... Snazzy Web pages The cross-platform language we want The rest-of-the-worlds answer to Bill The C++ replacement we need The C++ replacement we dont need A bunch of hype

Слайд 29


According to Sun, Java is... Simple and Powerful Object Oriented Portable Architecture Neutral Distributed Multi-threaded Robust, Secure/Safe...
Описание слайда:
According to Sun, Java is... Simple and Powerful Object Oriented Portable Architecture Neutral Distributed Multi-threaded Robust, Secure/Safe Interpreted High Performance Dynamic pogramming language/platform.

Слайд 30


On Closer Inspection, Java is... Simple Pure Portable Surprisingly effective
Описание слайда:
On Closer Inspection, Java is... Simple Pure Portable Surprisingly effective

Слайд 31


As a whole, Java is a Comprehensive Programming Solution Object Oriented Portable High Performance Geared for Distributed Environments Secure
Описание слайда:
As a whole, Java is a Comprehensive Programming Solution Object Oriented Portable High Performance Geared for Distributed Environments Secure

Слайд 32


Java as Object Oriented “Objects all the way down” Simple and Familiar: “C++ Lite” No Pointers! Garbage Collector Dynamic Binding Single Inheritance...
Описание слайда:
Java as Object Oriented “Objects all the way down” Simple and Familiar: “C++ Lite” No Pointers! Garbage Collector Dynamic Binding Single Inheritance with “Interfaces”

Слайд 33


Java as Portable Unlike other language compilers, Java complier generates code (byte codes) for Universal Machine. Java Virtual Machine (JVM):...
Описание слайда:
Java as Portable Unlike other language compilers, Java complier generates code (byte codes) for Universal Machine. Java Virtual Machine (JVM): Interprets bytecodes at runtime Architecture Neutral No Link Phase Higher Level Portable Features: AWT, Unicode

Слайд 34


Total Platform Independence
Описание слайда:
Total Platform Independence

Слайд 35


Internet and Java Foundations, Programming and Practice, слайд №35
Описание слайда:

Слайд 36


Architecture Neutral & Portable Java Compiler -Java source code to bytecode Bytecode - an intermediate form, closer to machine representation A...
Описание слайда:
Architecture Neutral & Portable Java Compiler -Java source code to bytecode Bytecode - an intermediate form, closer to machine representation A virtual machine on any target platform interprets the bytecode Porting the java system to any new platform involves writing an interpreter that supports the Java Virtual Machine The interpreter will figure out what the equivalent machine dependent code to run

Слайд 37


Java as High Performance JVM uses “lean and mean” bytecodes Small binary class filtes Just-in-time Compilers Multithreading Native Methods
Описание слайда:
Java as High Performance JVM uses “lean and mean” bytecodes Small binary class filtes Just-in-time Compilers Multithreading Native Methods

Слайд 38


Java in the World of Distributed Computing Class Loader Lightweight Binary Class Files Multithreading Dynamic Good communication constructs Secure
Описание слайда:
Java in the World of Distributed Computing Class Loader Lightweight Binary Class Files Multithreading Dynamic Good communication constructs Secure

Слайд 39


Java as Secure Language designed as safe Strict compiler Dynamic Runtime Loading (Verifier) Runtime Security Manager
Описание слайда:
Java as Secure Language designed as safe Strict compiler Dynamic Runtime Loading (Verifier) Runtime Security Manager

Слайд 40


Object Oriented Languages -a Comparison
Описание слайда:
Object Oriented Languages -a Comparison

Слайд 41


Java better than C++ ? No Typedefs, Defines, or Preprocessor No Global Variables No Goto statements No Pointers No Unsafe Structures No Multiple...
Описание слайда:
Java better than C++ ? No Typedefs, Defines, or Preprocessor No Global Variables No Goto statements No Pointers No Unsafe Structures No Multiple Inheritance No Operator Overloading No Automatic Coercions No Fragile Data Types

Слайд 42


Basic Data Types Types boolean either true of false char 16 bit Unicode 1.1 byte 8-bit integer (signed) short 16-bit integer (signed) int 32-bit...
Описание слайда:
Basic Data Types Types boolean either true of false char 16 bit Unicode 1.1 byte 8-bit integer (signed) short 16-bit integer (signed) int 32-bit integer (signed) long 64-bit integer (singed) float 32-bit floating point (IEEE 754-1985) double 64-bit floating point (IEEE 754-1985) String (class for manipulating strings) Java uses Unicode to represent characters internally

Слайд 43


Java Integrates Power of Compiled Languages and Flexibility of Interpreted Languages
Описание слайда:
Java Integrates Power of Compiled Languages and Flexibility of Interpreted Languages

Слайд 44


Two Types of JavaApplications Different ways to write/run a Java codes are: Application- A stand-alone program that can be invoked from command line...
Описание слайда:
Two Types of JavaApplications Different ways to write/run a Java codes are: Application- A stand-alone program that can be invoked from command line . A program that has a “main” method Applet- A program embedded in a web page , to be run when the page is browsed . A program that contains no “main” method Application -Java interpreter Applets- Java enabled web browser (Linked to HTML via tag. in html file)

Слайд 45


Internet and Java Foundations, Programming and Practice, слайд №45
Описание слайда:

Слайд 46


Java Development Kit javac - The Java Compiler java - The Java Interpreter jdb- The Java Debugger appletviewer -Tool to run the applets javap - to...
Описание слайда:
Java Development Kit javac - The Java Compiler java - The Java Interpreter jdb- The Java Debugger appletviewer -Tool to run the applets javap - to print the Java bytecodes javaprof - Java profiler javadoc - documentation generator javah - creates C header files

Слайд 47


Hello Internet // hello.java: Hello Internet program class HelloInternet { public static void main(String args[]) { System.out.println(“Hello...
Описание слайда:
Hello Internet // hello.java: Hello Internet program class HelloInternet { public static void main(String args[]) { System.out.println(“Hello Internet”); } }

Слайд 48


Program Processing Compilation # javac hello.java results in HelloInternet.class Execution # java HelloInternet Hello Internet #
Описание слайда:
Program Processing Compilation # javac hello.java results in HelloInternet.class Execution # java HelloInternet Hello Internet #

Слайд 49


Simple Java Applet // HelloWorld.java: A sample applet import java.applet.Applet; public class HelloWorld extends Applet { public void paint(Graphics...
Описание слайда:
Simple Java Applet // HelloWorld.java: A sample applet import java.applet.Applet; public class HelloWorld extends Applet { public void paint(Graphics g) { g.drawString(“Hello World !”,25,25); } }

Слайд 50


Calling an Applet Hello Worls Applet
Описание слайда:
Calling an Applet Hello Worls Applet

Слайд 51


Execution of Applets
Описание слайда:
Execution of Applets

Слайд 52


Web Perspective How did Web interactions work? How do they work with Java? Distributed Java objects and the Web
Описание слайда:
Web Perspective How did Web interactions work? How do they work with Java? Distributed Java objects and the Web

Слайд 53


Classical Web Perspective
Описание слайда:
Classical Web Perspective

Слайд 54


Java Web Perspective
Описание слайда:
Java Web Perspective

Слайд 55


Significance of downloading Applets Interactive WWW Flashy animation instead of static web pages Applets react to users input and dynamically change...
Описание слайда:
Significance of downloading Applets Interactive WWW Flashy animation instead of static web pages Applets react to users input and dynamically change Display of dynamic data WWW with Java - more than a document publishing medium

Слайд 56


Power of Java and the Web Deliver applications, not just information Eliminate porting Eliminate end-user installation Slash software distribution...
Описание слайда:
Power of Java and the Web Deliver applications, not just information Eliminate porting Eliminate end-user installation Slash software distribution costs Reach millions of customers - instantly

Слайд 57


Lifecycle of Java Code
Описание слайда:
Lifecycle of Java Code

Слайд 58


Bytecode Verifier Called when class is first loaded in runtime environment Verifies bytecodes meet certain set of properties Verifier uses Theorem...
Описание слайда:
Bytecode Verifier Called when class is first loaded in runtime environment Verifies bytecodes meet certain set of properties Verifier uses Theorem Prover Verified code runs faster After verification, interpreter defines memory layout

Слайд 59


Class Loader Unique “Namespace” for each origin Local namespace classes are called “built-ins” Prevents class “spoofing”
Описание слайда:
Class Loader Unique “Namespace” for each origin Local namespace classes are called “built-ins” Prevents class “spoofing”

Слайд 60


Security Manager Prevents unauthorized disk read/writes Restricts network access Other access restrictions (native methods) Implementation is browser...
Описание слайда:
Security Manager Prevents unauthorized disk read/writes Restricts network access Other access restrictions (native methods) Implementation is browser dependent

Слайд 61


General Language Features C/C++ like syntax No pointers Objects all the way down Objects request services of other objects through messages Messages...
Описание слайда:
General Language Features C/C++ like syntax No pointers Objects all the way down Objects request services of other objects through messages Messages result in invocation of class methods

Слайд 62


Removed From C++ Operator overloading Pointers and Array/pointers Multiple-inheritance of implementation Enum, typedef, #define Copy constructors,...
Описание слайда:
Removed From C++ Operator overloading Pointers and Array/pointers Multiple-inheritance of implementation Enum, typedef, #define Copy constructors, destructors Templates And other stuff....

Слайд 63


Added or Improved over C++ Interfaces: type Vs. class Garbage collection Exceptions (More powerful than C++) Strings Instanceof Package Multi-threads
Описание слайда:
Added or Improved over C++ Interfaces: type Vs. class Garbage collection Exceptions (More powerful than C++) Strings Instanceof Package Multi-threads

Слайд 64


Rich Object Environment Core Classes language Utilities Input/Output Low-Level Networking Abstract Graphical User Interface Internet Classes TCP/IP...
Описание слайда:
Rich Object Environment Core Classes language Utilities Input/Output Low-Level Networking Abstract Graphical User Interface Internet Classes TCP/IP Networking WWW and HTML Distributed Programs

Слайд 65


Main Packages java.lang java.util java.io java.awt java.awt.image java.applet java.net
Описание слайда:
Main Packages java.lang java.util java.io java.awt java.awt.image java.applet java.net

Слайд 66


Java Fundamentals Constructs Graphics Multithreading Streams and Networking Networking
Описание слайда:
Java Fundamentals Constructs Graphics Multithreading Streams and Networking Networking

Слайд 67


Unit I--Java Constructs what is Java, basic constructs, including classes and objects constructors, this and super keywords, inheritance, abstract...
Описание слайда:
Unit I--Java Constructs what is Java, basic constructs, including classes and objects constructors, this and super keywords, inheritance, abstract classes, interfaces, inner classes, exceptions.

Слайд 68


Unit II--Graphics Programming How to build Graphical User Interfaces in Java: GUI components, event handling, layout management.
Описание слайда:
Unit II--Graphics Programming How to build Graphical User Interfaces in Java: GUI components, event handling, layout management.

Слайд 69


Unit III--Advanced Features Applets, Threads, Streams I/O, Networking
Описание слайда:
Unit III--Advanced Features Applets, Threads, Streams I/O, Networking

Слайд 70


Unit I -- What is Java ? A programming language: Object oriented (no friends, all functions are members of classes, no function libraries -- just...
Описание слайда:
Unit I -- What is Java ? A programming language: Object oriented (no friends, all functions are members of classes, no function libraries -- just class libraries) simple (no pointer arithmetic, no need for programmer to deallocate memory) platform independent dynamic interpreted

Слайд 71


Types Eight basic types 4 integers (byte, short, int, short) [ int a; ] 2 floating point (float, double) [ double a;] 1 character (char) [ char a; ]...
Описание слайда:
Types Eight basic types 4 integers (byte, short, int, short) [ int a; ] 2 floating point (float, double) [ double a;] 1 character (char) [ char a; ] 1 boolean (boolean) [ boolean a; ] Everything else is an object String s;

Слайд 72


Classes and objects declaring a class class MyClass { member variables; … member functions () ; … } // end class MyClass
Описание слайда:
Classes and objects declaring a class class MyClass { member variables; … member functions () ; … } // end class MyClass

Слайд 73


Java programs Two kinds Applications have main() run from the OS prompt Applets have init(), start(), stop(), paint(), update(), repaint(), destroy()...
Описание слайда:
Java programs Two kinds Applications have main() run from the OS prompt Applets have init(), start(), stop(), paint(), update(), repaint(), destroy() run from within a web page

Слайд 74


The first Java Application class MyApp { public static void main(String s [ ] ) { System.out.println(“Hello World”); } } // end class MyApp
Описание слайда:
The first Java Application class MyApp { public static void main(String s [ ] ) { System.out.println(“Hello World”); } } // end class MyApp

Слайд 75


Declaring and creating objects declare a reference String s; create/define an object s = new String (“India”);
Описание слайда:
Declaring and creating objects declare a reference String s; create/define an object s = new String (“India”);

Слайд 76


Arrays (are objects in Java) declare int a [ ] ; // 1-dim int [ ] b ; // 1-dim int [ ] c [ ]; // 2-dim int c [ ][]; // 2-dim allocate space a = new...
Описание слайда:
Arrays (are objects in Java) declare int a [ ] ; // 1-dim int [ ] b ; // 1-dim int [ ] c [ ]; // 2-dim int c [ ][]; // 2-dim allocate space a = new int [7]; c = new int [7][11];

Слайд 77


Arrays have length used to retrieve the size of an array int a [ ] = new int [7]; // 1-dim System.out.println(a.length); will print ‘7’ int b [ ] [ ]...
Описание слайда:
Arrays have length used to retrieve the size of an array int a [ ] = new int [7]; // 1-dim System.out.println(a.length); will print ‘7’ int b [ ] [ ] = new int [7] [11]; System.out.println(a.length); will print ‘7’ System.out.println(b.length * b[0].length); will print ‘77’

Слайд 78


… this is because Let int [][][][] array = new int [7][11][10][21] , then … array.length * array[3].length * array[3][5].length *...
Описание слайда:
… this is because Let int [][][][] array = new int [7][11][10][21] , then … array.length * array[3].length * array[3][5].length * array[3][5][2].length is 7 x 11 x 10 x 21

Слайд 79


… this is because
Описание слайда:
… this is because

Слайд 80


Constructors All objects are created through constructors They are invoked automatically class Weight { int lb; int oz; public Weight (int a, int b )...
Описание слайда:
Constructors All objects are created through constructors They are invoked automatically class Weight { int lb; int oz; public Weight (int a, int b ) { lb = a; oz = b; } }

Слайд 81


this keyword refers to “this” object (object in which it is used) usage: with an instance variable or method of “this” class as a function inside a...
Описание слайда:
this keyword refers to “this” object (object in which it is used) usage: with an instance variable or method of “this” class as a function inside a constructor of “this” class as “this” object, when passed as parameter

Слайд 82


this :: with a variable refers to “this” object’s data member class Weight { int lb; int oz; public Weight (int lb, int oz ) { this.lb = lb; this.oz...
Описание слайда:
this :: with a variable refers to “this” object’s data member class Weight { int lb; int oz; public Weight (int lb, int oz ) { this.lb = lb; this.oz = oz; } }

Слайд 83


this :: with a method refers to another method of “this” class class Weight { public int m1 (int a) { int x = this.m2(a); return x; } public int...
Описание слайда:
this :: with a method refers to another method of “this” class class Weight { public int m1 (int a) { int x = this.m2(a); return x; } public int m2(int b) { return b*7 ; } }

Слайд 84


this :: as a function inside a constructor of “this” class must be used with a constructor class Weight { int lb, oz; public Weight (int a, int b) {...
Описание слайда:
this :: as a function inside a constructor of “this” class must be used with a constructor class Weight { int lb, oz; public Weight (int a, int b) { lb = a; oz = b; } } public Weight (int x) { this( x, 0); } }

Слайд 85


this :: as “this” object, when passed as parameter refers to the object that used to call the calling method class MyApp { int a; public static void...
Описание слайда:
this :: as “this” object, when passed as parameter refers to the object that used to call the calling method class MyApp { int a; public static void main(String [] s ) { (new MyApp()).myMethod(); } public void myMethod() { yourMethod(this); } public void yourMethod(MyApp inMyApp) { inMyApp.a = 77; } }

Слайд 86


static keyword means “global”--all all objects refer to the same storage. applies to variables or methods” usage: with an instance variable of a...
Описание слайда:
static keyword means “global”--all all objects refer to the same storage. applies to variables or methods” usage: with an instance variable of a class with a method of a class

Слайд 87


static keyword (with variables) class PurchaseOrder { private static int POCount; // var. ‘a’ is shared by all objects of this class public static...
Описание слайда:
static keyword (with variables) class PurchaseOrder { private static int POCount; // var. ‘a’ is shared by all objects of this class public static void main(String [] s ) { PurchaseOrder po1 = new PurchaseOrder(); po1.updatePOCount(); } public void updatePOCount() { POCount++; } }

Слайд 88


static keyword (w/ methods)
Описание слайда:
static keyword (w/ methods)

Слайд 89


Inheritance (subclassing)
Описание слайда:
Inheritance (subclassing)

Слайд 90


Manager can be made a sub/derived-class of Employee
Описание слайда:
Manager can be made a sub/derived-class of Employee

Слайд 91


Overriding (methods)
Описание слайда:
Overriding (methods)

Слайд 92


class First { public First() { System.out.println(“ First class “); } } public class Second extends First { public Second() {...
Описание слайда:
class First { public First() { System.out.println(“ First class “); } } public class Second extends First { public Second() { System.out.println(“Second class”); } } public class Third extends Second { public Third() {System.out.println(“Third class”);} }

Слайд 93


access modifiers private same class only public everywhere protected same class, same package, any subclass (default) same class, same package
Описание слайда:
access modifiers private same class only public everywhere protected same class, same package, any subclass (default) same class, same package

Слайд 94


super keyword refers to the superclass (base class) usage: with a variable or method (most common with a method) as a function inside a constructor...
Описание слайда:
super keyword refers to the superclass (base class) usage: with a variable or method (most common with a method) as a function inside a constructor of the subclass

Слайд 95


super :: with a method class Manager extends Employee { private double bonus; public void setBonus(double bb) { …} public void raise(double dd) {...
Описание слайда:
super :: with a method class Manager extends Employee { private double bonus; public void setBonus(double bb) { …} public void raise(double dd) { //overrides raise() of Employee super.raise(dd); // call Employee’s raise() salary += bonus; } public Manager ( … ) { … } }

Слайд 96


super :: as a function inside a constructor of the subclass class Manager extends Employee { private double bonus; public void setBonus(double bb) {...
Описание слайда:
super :: as a function inside a constructor of the subclass class Manager extends Employee { private double bonus; public void setBonus(double bb) { …} public Manager ( String name, double salary, double bonus ) { super(name, salary); this.bonus = bonus; } }

Слайд 97


final keyword means “constant” applies to variables (makes a var. constant), or methods (makes a method non-overridable), or classes (makes a class...
Описание слайда:
final keyword means “constant” applies to variables (makes a var. constant), or methods (makes a method non-overridable), or classes (makes a class non-subclassable means “objects cannot be created”).

Слайд 98


final keyword with a variable class Math { public final double pi = 3.1412; public static double method(double x) { double x = pi * pi; } } note:...
Описание слайда:
final keyword with a variable class Math { public final double pi = 3.1412; public static double method(double x) { double x = pi * pi; } } note: variable pi is made “read-only”

Слайд 99


final keyword with a method
Описание слайда:
final keyword with a method

Слайд 100


final keyword with a class
Описание слайда:
final keyword with a class

Слайд 101


abstract classes and interfaces abstract classes may have both implemented and non-implemented methods interfaces have only non-implemented methods...
Описание слайда:
abstract classes and interfaces abstract classes may have both implemented and non-implemented methods interfaces have only non-implemented methods (concrete classes) have all their methods implemented

Слайд 102


sample abstract class
Описание слайда:
sample abstract class

Слайд 103


sample interface
Описание слайда:
sample interface

Слайд 104


Exceptions (error handling)
Описание слайда:
Exceptions (error handling)

Слайд 105


Exceptions (cont’d)
Описание слайда:
Exceptions (cont’d)

Слайд 106


methods throwing exceptions
Описание слайда:
methods throwing exceptions

Слайд 107


Defining your own exceptions
Описание слайда:
Defining your own exceptions

Слайд 108


GUI Programming in Java (AWT and Event Handling)
Описание слайда:
GUI Programming in Java (AWT and Event Handling)

Слайд 109


AWT - Abstract Windowing Toolkit Single Windowing Interface on Multiple Platforms Supports functions common to all window systems Uses Underlying...
Описание слайда:
AWT - Abstract Windowing Toolkit Single Windowing Interface on Multiple Platforms Supports functions common to all window systems Uses Underlying Native Window system AWT provides GUI widgets Event Handling Containers for widgets Layout managers Graphic operations

Слайд 110


AWT - Abstract Window Toolkit Portable GUI - preserves native look & feel Standard GUI Components (buttons…) Containers - Panels, Frames, Dialogs...
Описание слайда:
AWT - Abstract Window Toolkit Portable GUI - preserves native look & feel Standard GUI Components (buttons…) Containers - Panels, Frames, Dialogs Graphics class for custom drawing Layouts responsible for actual positioning of components: BorderLayout, GridLayout, FlowLayout, null layoit

Слайд 111


Adding Components via Layouts setLayout(new BorderLayout()); // Add text field to top add("North",new TextField()); // Create the panel...
Описание слайда:
Adding Components via Layouts setLayout(new BorderLayout()); // Add text field to top add("North",new TextField()); // Create the panel with buttons at the bottom... Panel p = new Panel(); // FlowLayout p.add(new Button("OK")); p.add(new Button("Cancel")); add("South",p);

Слайд 112


Adding Components via Layouts
Описание слайда:
Adding Components via Layouts

Слайд 113


Building Graphical User Interfaces import java.awt.*; Assemble the GUI use GUI components, basic components (e.g., Button, TextField) containers...
Описание слайда:
Building Graphical User Interfaces import java.awt.*; Assemble the GUI use GUI components, basic components (e.g., Button, TextField) containers (Frame, Panel) set the positioning of the components use Layout Managers Attach events

Слайд 114


A sample GUI program
Описание слайда:
A sample GUI program

Слайд 115


Internet and Java Foundations, Programming and Practice, слайд №115
Описание слайда:

Слайд 116


Events
Описание слайда:
Events

Слайд 117


Events Each GUI component (e.g., a Button) that wishes to respond to an event type (e.g., click), must register an event handler, called a Listener....
Описание слайда:
Events Each GUI component (e.g., a Button) that wishes to respond to an event type (e.g., click), must register an event handler, called a Listener. The listener is an object of a "Listener" interface. A Listener class can be created by subclassing (through "implements") one of Listener interfaces (all listener inrefaces are in the java.awt.event package = > must import java.awt.event.*; ) The registration of the listener is done by a call to a method such as addActionListener(). Each GUI component class has one or more such add…() methods, where applicable.

Слайд 118


Listener Interfaces
Описание слайда:
Listener Interfaces

Слайд 119


Listener Interfaces
Описание слайда:
Listener Interfaces

Слайд 120


1) windowActivated(WindowEvent) - Invoked when a window is activated. 2) windowClosed(WindowEvent) - Invoked when a window has been closed. 3)...
Описание слайда:
1) windowActivated(WindowEvent) - Invoked when a window is activated. 2) windowClosed(WindowEvent) - Invoked when a window has been closed. 3) windowClosing(WindowEvent) - Invoked when a window is in the process of being closed. 4) windowDeactivated(WindowEvent) - Invoked when a window is de-activated. 5) windowDeiconified(WindowEvent) - Invoked when a window is de-iconified. 6) windowIconified(WindowEvent) - Invoked when a window is iconified. 7) windowOpened(WindowEvent) - Invoked when a window has been opened.

Слайд 121


How to create an object of a listener interface ?
Описание слайда:
How to create an object of a listener interface ?

Слайд 122


Implementing the ActionListener Interface and attaching an event handler to a button
Описание слайда:
Implementing the ActionListener Interface and attaching an event handler to a button

Слайд 123


class MyApp implements ActionListener, WindowListener { Button b = new Button(“OK”); Frame f = new Frame(“My Frame”); public static void main(String...
Описание слайда:
class MyApp implements ActionListener, WindowListener { Button b = new Button(“OK”); Frame f = new Frame(“My Frame”); public static void main(String [] s ) {(new MyApp()).go(); } public void go() { b.addActionListener( this ); f.addWindowListener( this ); } public void actionPerformed(ActionEvent e ) { … } public void windowActivated(WindowEvent e ) { … } public void windowClosed(WindowEvent e ) { … } public void windowClosing(WindowEvent e ) { … } public void windowDeactivated(WindowEvent e) { … } public void windowDeiconified(WindowEvent e) { … } public void windowIconified(WindowEvent e) { … } public void windowOpened(WindowEvent e) { … } }

Слайд 124


or … use Adapters
Описание слайда:
or … use Adapters

Слайд 125


But, we can only use one Adapter at a time (no multiple inheritance)
Описание слайда:
But, we can only use one Adapter at a time (no multiple inheritance)

Слайд 126


However … can use inner classes instead !!!
Описание слайда:
However … can use inner classes instead !!!

Слайд 127


Popup Menu and Event Handling... //popup.java: popup menu and event handling import java.applet.Applet; import java.awt.*; import java.awt.event.*;...
Описание слайда:
Popup Menu and Event Handling... //popup.java: popup menu and event handling import java.applet.Applet; import java.awt.*; import java.awt.event.*; public class popup extends Frame implements ActionListener, MouseListener { TextField text1; PopupMenu popup; MenuItem menuitem1, menuitem2, menuitem3; public popup() { super( "Popup Menu" ); setLayout(new FlowLayout()); setBounds(10, 10, 300, 200 ); setVisible(true); init(); } public void init() { popup = new PopupMenu("Resource Usage" );

Слайд 128


Popup Menu and Event Handling... menuitem1 = new MenuItem("CPU"); menuitem1.addActionListener(this); menuitem2 = new...
Описание слайда:
Popup Menu and Event Handling... menuitem1 = new MenuItem("CPU"); menuitem1.addActionListener(this); menuitem2 = new MenuItem("Disk"); menuitem2.addActionListener(this); menuitem3 = new MenuItem("Memory"); menuitem3.addActionListener(this); popup.add(menuitem1); popup.add(menuitem2); popup.add(menuitem3); add(popup); text1 = new TextField(20); text1.setBounds(20, 40, 120, 30 ); add(text1); addMouseListener(this); } public void mousePressed(MouseEvent e ) { if( e.getModifiers() != 0 ) popup.show(this, e.getX(), e.getY() ); }

Слайд 129


Popup Menu and Event Handling public void mouseReleased( MouseEvent e ) { System.out.print("Mouse Released\n" ); } public void...
Описание слайда:
Popup Menu and Event Handling public void mouseReleased( MouseEvent e ) { System.out.print("Mouse Released\n" ); } public void mouseEntered( MouseEvent e ) { System.out.print("Mouse Entered\n" ); } public void mouseExited( MouseEvent e ) { System.out.print("Mouse Exited\n" ); } public void actionPerformed( ActionEvent e ) { if( e.getSource() == menuitem1 ) { text1.setText("CPU"); } if( e.getSource() == menuitem2 ) { text1.setText("Disk"); } if( e.getSource() == menuitem3 ) { text1.setText("Memory"); } } public static void main( String args[] ) { popup p = new popup(); } }

Слайд 130


Applets and GUI
Описание слайда:
Applets and GUI

Слайд 131


AWT & Applets
Описание слайда:
AWT & Applets

Слайд 132


Applet methods AppletContext “Applet” derived from AWT Panel Hooks into Browser environment Can be used to link to another Web page
Описание слайда:
Applet methods AppletContext “Applet” derived from AWT Panel Hooks into Browser environment Can be used to link to another Web page

Слайд 133


A sample Applet // HelloApplet.java: for processing applet methods import java.awt.*; import java.applet.*; public class HelloApplet extends Applet {...
Описание слайда:
A sample Applet // HelloApplet.java: for processing applet methods import java.awt.*; import java.applet.*; public class HelloApplet extends Applet { public void init() { setBackground(Color.yellow); System.out.println("init() method invoked"); } public void start() { System.out.println("start() method invoked"); } public void paint( Graphics g ) { System.out.println("paint() method invoked"); g.drawString( "Hi there", 24, 25 ); } public void stop() { System.out.println("stop() method invoked"); } }

Слайд 134


sample Applet
Описание слайда:
sample Applet

Слайд 135


another sample Applet (run in Applet Viewer)
Описание слайда:
another sample Applet (run in Applet Viewer)

Слайд 136


sample Applet running within Netscape
Описание слайда:
sample Applet running within Netscape

Слайд 137


sample Applet code
Описание слайда:
sample Applet code

Слайд 138


Another example // MyApplet.java: draws rectangle with yellow color fill import java.applet.*; import java.awt.*; public class MyApplet extends...
Описание слайда:
Another example // MyApplet.java: draws rectangle with yellow color fill import java.applet.*; import java.awt.*; public class MyApplet extends Applet { public synchronized void paint(Graphics g) { int x,y,width,height; Dimension dm = size(); x = dm.width/4; y = dm.height / 4; width = dm.width / 2; height = dm.height / 2; // Draw the rectangle in the center with colors! g.setColor(Color.blue); g.drawRect(x,y,width,height); g.setColor(Color.yellow); g.fillRect(x + 1,y + 1,width - 2,height - 2); } }

Слайд 139


order of Applet method execution
Описание слайда:
order of Applet method execution

Слайд 140


order of Applet method execution (cont’d)
Описание слайда:
order of Applet method execution (cont’d)

Слайд 141


Incorporating Images and sound in Applets
Описание слайда:
Incorporating Images and sound in Applets

Слайд 142


sample Applet with sound
Описание слайда:
sample Applet with sound

Слайд 143


how to do that ….
Описание слайда:
how to do that ….

Слайд 144


Applet that displays image
Описание слайда:
Applet that displays image

Слайд 145


Applet that plays sound
Описание слайда:
Applet that plays sound

Слайд 146


Multithreading in Java (A built-in feature in Java)
Описание слайда:
Multithreading in Java (A built-in feature in Java)

Слайд 147


Single and Multithreaded Processes
Описание слайда:
Single and Multithreaded Processes

Слайд 148


Threads Java has built in thread support for Multithreading Synchronization Thread Scheduling Inter-Thread Communication: currentThread start...
Описание слайда:
Threads Java has built in thread support for Multithreading Synchronization Thread Scheduling Inter-Thread Communication: currentThread start setPriority yield run getPriority sleep stop suspend resume Java Garbage Collector is a low-priority thread

Слайд 149


Thread states
Описание слайда:
Thread states

Слайд 150


Threading Mechanisms... Create a class that extends the Thread class Create a class that implements the Runnable interface
Описание слайда:
Threading Mechanisms... Create a class that extends the Thread class Create a class that implements the Runnable interface

Слайд 151


1st method: Extending Thread class 1st Method: Extending the Thread class class MyThread extends Thread { public void run() { // thread body of...
Описание слайда:
1st method: Extending Thread class 1st Method: Extending the Thread class class MyThread extends Thread { public void run() { // thread body of execution } } Creating thread: MyThread thr1 = new MyThread(); Start Execution: thr1.start();

Слайд 152


An example
Описание слайда:
An example

Слайд 153


2nd method: Threads by implementing Runnable interface class MyThread implements Runnable { ..... public void run() { // thread body of execution } }...
Описание слайда:
2nd method: Threads by implementing Runnable interface class MyThread implements Runnable { ..... public void run() { // thread body of execution } } Creating Object: MyThread myObject = new MyThread(); Creating Thread Object: Thread thr1 = new Thread( myObject ); Start Execution: thr1.start();

Слайд 154


An example
Описание слайда:
An example

Слайд 155


A program with two threads
Описание слайда:
A program with two threads

Слайд 156


Monitor model (for Syncronisation)
Описание слайда:
Monitor model (for Syncronisation)

Слайд 157


examples :: program with two threads and shared object
Описание слайда:
examples :: program with two threads and shared object

Слайд 158


the monitor (shared object)
Описание слайда:
the monitor (shared object)

Слайд 159


the driver
Описание слайда:
the driver

Слайд 160


Threads in Action... Cooperative threads - File Copy
Описание слайда:
Threads in Action... Cooperative threads - File Copy

Слайд 161


Streams and I/O
Описание слайда:
Streams and I/O

Слайд 162


Streams and I/O basic classes for file IO FileInputStream, for reading from a file FileOutputStream, for writing to a file Example: Open a file...
Описание слайда:
Streams and I/O basic classes for file IO FileInputStream, for reading from a file FileOutputStream, for writing to a file Example: Open a file "myfile.txt" for reading FileInputStream fis = new FileInputStream("myfile.txt"); Open a file "outfile.txt" for writing FileOutputStream fos = new FileOutputStream ("myfile.txt");

Слайд 163


Display File Contents
Описание слайда:
Display File Contents

Слайд 164


Filters
Описание слайда:
Filters

Слайд 165


Writing data to a file using Filters
Описание слайда:
Writing data to a file using Filters

Слайд 166


Reading data from a file using filters
Описание слайда:
Reading data from a file using filters

Слайд 167


Object serialization
Описание слайда:
Object serialization

Слайд 168


Write an object to a file
Описание слайда:
Write an object to a file

Слайд 169


Read an object from a file
Описание слайда:
Read an object from a file

Слайд 170


Network/Socket Programming in Java
Описание слайда:
Network/Socket Programming in Java

Слайд 171


java.net Used to manage: URL streams Client/server sockets Datagrams
Описание слайда:
java.net Used to manage: URL streams Client/server sockets Datagrams

Слайд 172


Part III - Networking
Описание слайда:
Part III - Networking

Слайд 173


Server side Socket Operations 1. Open Server Socket: String server; Socket slink; DataOutputStream os; DataInputStream is; server = new ServerSocket(...
Описание слайда:
Server side Socket Operations 1. Open Server Socket: String server; Socket slink; DataOutputStream os; DataInputStream is; server = new ServerSocket( PORT ); 2. Wait for Client Request: Socket client = server.accept(); 3. Create I/O streams for communicating to clients is = new DataInputStream( client.getInputStream() ); os = new DataOutputStream( client.getOutputStream() ); 4. Perform communication with client Receiive from client: String line = is.readLine(); Send to client: os.writeBytes("Hello\n"); 5. Close sockets: client.close(); For multithreade server: while(true) { i. wait for client requests (step 2 above) ii. create a thread with “client” socket as parameter (the thread creates streams (as in step (3) and does communication as stated in (4). Remove thread once service is provided. }

Слайд 174


Client side Socket Operations 1. Get connection to server: client = new Socket( server, port_id ); 2. Create I/O streams for communicating to clients...
Описание слайда:
Client side Socket Operations 1. Get connection to server: client = new Socket( server, port_id ); 2. Create I/O streams for communicating to clients is = new DataInputStream( client.getInputStream() ); os = new DataOutputStream( client.getOutputStream() ); 3. Perform communication with client Receiive from client: String line = is.readLine(); Send to client: os.writeBytes("Hello\n"); 4. Close sockets: client.close();

Слайд 175


A simple server (simplified code)
Описание слайда:
A simple server (simplified code)

Слайд 176


A simple client (simplified code)
Описание слайда:
A simple client (simplified code)

Слайд 177


Echo Server Client.. //client.java: client interface to server import java.io.*; import java.net.*; public class client { int port_id; String server;...
Описание слайда:
Echo Server Client.. //client.java: client interface to server import java.io.*; import java.net.*; public class client { int port_id; String server; Socket slink; DataOutputStream os; DataInputStream is; DataInputStream kbd; public client( String args[] ) { server = args[0]; port_id = Integer.valueOf(args[1]).intValue(); try { slink = new Socket( server, port_id ); os = new DataOutputStream( slink.getOutputStream() ); is = new DataInputStream( slink.getInputStream() ); kbd = new DataInputStream( System.in ); }

Слайд 178


Echo Server Client.. catch( UnknownHostException e ) { System.err.println( "Don't know about host: " ); System.exit(1); } catch(...
Описание слайда:
Echo Server Client.. catch( UnknownHostException e ) { System.err.println( "Don't know about host: " ); System.exit(1); } catch( IOException e ) { System.err.println( "Could not get I/O for the connection to "+server); System.exit(1); } } void communicate() { while(true) { try { System.out.print("Enter Input : "); String line = kbd.readLine(); os.writeBytes( line+"\n" );

Слайд 179


Echo Server Client.. if( line.equals("end") ) { os.close(); is.close(); slink.close(); break; } String line2 = is.readLine();...
Описание слайда:
Echo Server Client.. if( line.equals("end") ) { os.close(); is.close(); slink.close(); break; } String line2 = is.readLine(); System.out.println("Output: "+line2); } catch( IOException e ) { System.out.println(e); } } } public static void main( String [] args ) { if( args.length < 2 ) { System.out.println("Usage: java client server_name port_id" ); System.exit(1); } client cln = new client( args ); cln.communicate(); } }

Слайд 180


Echo Server ... // server.java: echo server import java.io.*; import java.net.*; public class server { // public final static int PORT = 4779; public...
Описание слайда:
Echo Server ... // server.java: echo server import java.io.*; import java.net.*; public class server { // public final static int PORT = 4779; public static void main( String [] args ) { ServerSocket server = null; DataOutputStream os = null; DataInputStream is = null; boolean shutdown = false; if( args.length < 1 ) { System.out.println( "Usage: java server port_num" ); System.exit( 1 ); } int PORT = Integer.valueOf(args[0]).intValue(); try { server = new ServerSocket( PORT ); }

Слайд 181


Echo Server ... catch( IOException e ) { System.err.println( "Could not get I/O for the connection to: "); } while(!shutdown) { if( server...
Описание слайда:
Echo Server ... catch( IOException e ) { System.err.println( "Could not get I/O for the connection to: "); } while(!shutdown) { if( server != null ) { try { Socket client = server.accept(); System.out.println("Connected"); InetAddress cip = client.getInetAddress(); System.out.println( "Client IP Addr: "+cip.toString()); is = new DataInputStream( client.getInputStream() ); os = new DataOutputStream( client.getOutputStream() ); for(;;) { String line = is.readLine(); if( line == null ) break;

Слайд 182


Echo Server ... if( line.startsWith("end" ) ) { shutdown = true; break; } os.writeBytes(line.toUpperCase()); os.writeBytes("\n");...
Описание слайда:
Echo Server ... if( line.startsWith("end" ) ) { shutdown = true; break; } os.writeBytes(line.toUpperCase()); os.writeBytes("\n"); System.out.println(line); } is.close(); client.close(); } catch( UnknownHostException e ) { System.err.println( "Server Open fails" ); } catch( IOException e ) { System.err.println( "Could not get I/O for the connection to:"+args[0]); } } }

Слайд 183


Echo Server System.out.println( "Server Down" ); try { server.close(); } catch(IOException e) {} } }
Описание слайда:
Echo Server System.out.println( "Server Down" ); try { server.close(); } catch(IOException e) {} } }

Слайд 184


Internet and Java Foundations, Programming and Practice, слайд №184
Описание слайда:

Слайд 185


Java System Architecture & Availability
Описание слайда:
Java System Architecture & Availability

Слайд 186


A Look Inside the Java Platform
Описание слайда:
A Look Inside the Java Platform

Слайд 187


Java Applications! Java applications are now available Cost of manfg zero, cost of distribution zero, cost of marketing zero! Hot Java is lean -...
Описание слайда:
Java Applications! Java applications are now available Cost of manfg zero, cost of distribution zero, cost of marketing zero! Hot Java is lean - loads everything else from the net. Java itself is small - 40k to 225k New class of small machines will emerge Java on cellular phones, credit cards, washing machines, and everywhere ?

Слайд 188


Universal Interface
Описание слайда:
Universal Interface

Слайд 189


Java on my platform ? Sun (SPARC) Sun(x86) IBM(Aix, OS/2) DEC(Alpha OSF/1) SGI HP Linux AT & T Windows 3.1
Описание слайда:
Java on my platform ? Sun (SPARC) Sun(x86) IBM(Aix, OS/2) DEC(Alpha OSF/1) SGI HP Linux AT & T Windows 3.1

Слайд 190


Java Development Tools (Present and Planned)
Описание слайда:
Java Development Tools (Present and Planned)

Слайд 191


Sun’s Java WorkShop JDK: Compiler and runtime environment Class Libraries Documentation javadoc - Automated Documentation Takes comments and converts...
Описание слайда:
Sun’s Java WorkShop JDK: Compiler and runtime environment Class Libraries Documentation javadoc - Automated Documentation Takes comments and converts to HTML IDE: Visual Java, and integrated tools, JavaBeans Other Products and API: JavaHelp, Java Card, Java Blend, JavaOS, Java Mail, Java Management, Java Electronic Commerce Framework Java Enterprise API: Java Naming and Directory Interface, Java IDL, JDBC, RMI and Object Serialization

Слайд 192


Symantec Cafe 1.0 (Released) Full IDE for Windows 95/NT Graphic Development Tools Two Compilers Debugger Class Browser
Описание слайда:
Symantec Cafe 1.0 (Released) Full IDE for Windows 95/NT Graphic Development Tools Two Compilers Debugger Class Browser

Слайд 193


Microsoft Jakarta (Planned) Visual C++ type interface Will Support ActiveX/COM Internet Explorer 3.0 will have Just-In-Time Java compiler
Описание слайда:
Microsoft Jakarta (Planned) Visual C++ type interface Will Support ActiveX/COM Internet Explorer 3.0 will have Just-In-Time Java compiler

Слайд 194


Borland JBuilder Visual RAD workbench for maximum productivity. Rapid Application Development (RAD) and Open Component Architecture patterned after...
Описание слайда:
Borland JBuilder Visual RAD workbench for maximum productivity. Rapid Application Development (RAD) and Open Component Architecture patterned after Delphi. 100+ JavaBean components, with source code, for drag-and-drop applications. Beans Express--easiest way to create industry-standard Java-Bean components. DataExpress -- the fastest way to build business and database appplications. Borland DataGateway for Java connectivity to all major database servers. Multi-tier applications with integrated RMI and CORBA. Versions: Standard, Professional, & Client/Server

Слайд 195


Challenges & Possible Directions Performance AWT - need better GUI! Maintaining Interoperability Security - current restrictions limit what can be...
Описание слайда:
Challenges & Possible Directions Performance AWT - need better GUI! Maintaining Interoperability Security - current restrictions limit what can be done Native Compilers Is Portability that Important?

Слайд 196


Comments Java is a fun and easy programming language Portability = Mediocrity? Java will become a programming language of choice, but may take on a...
Описание слайда:
Comments Java is a fun and easy programming language Portability = Mediocrity? Java will become a programming language of choice, but may take on a final form that will surprise many!

Слайд 197


JDBC Java API for Relational Databases Being standardized by all major players
Описание слайда:
JDBC Java API for Relational Databases Being standardized by all major players

Слайд 198


Javascript and Java (Preview) Javascript can control Java applets Static data accessible as properties of applet var i = Bank.Account.count Public...
Описание слайда:
Javascript and Java (Preview) Javascript can control Java applets Static data accessible as properties of applet var i = Bank.Account.count Public methods invocable on Java instances Provided those instances are accessible through the Applet Applet is accessible through document document.applet_Name_Attribute.do_Stuff()

Слайд 199


Java for HPC! Many efforts are in in progress for making java as a language for parallel programming. Java computing frameworks (HPC, numeric, data...
Описание слайда:
Java for HPC! Many efforts are in in progress for making java as a language for parallel programming. Java computing frameworks (HPC, numeric, data parallel) Java in distributed simulations and applications (e.g., real-world HPC, grand chalenge) Source to source translators (C, Fortran, C++ to Java) Web based computation environment in Java Java for HPC conference: Java for Science and Engineering computing: subscribe java-for-cse to majordomo@npac.syr.edu

Слайд 200


How to Convert Programs to AWT 1.1... 1. Change source code so that it import event package: import java.awt.event.*; 2. Figure out which component...
Описание слайда:
How to Convert Programs to AWT 1.1... 1. Change source code so that it import event package: import java.awt.event.*; 2. Figure out which component generates each event type: (1.0 uses handleEvent() and action()) Button, List, MenuItem, TextField: Interface: ActionListener Method: actionPerformed(ActionEvent event) Checkbox, CheckboxMenuItem, Choice: Interface: ItemListener Method: itemStateChanged(..) Dialog, Frame: Interface: WindowListener Method: windowClosing(), windowOpened(),...

Слайд 201


How to Convert Programs to AWT 1.1... 3. Change class declaration so that class implements public class MyClass extends SomeComponent implements...
Описание слайда:
How to Convert Programs to AWT 1.1... 3. Change class declaration so that class implements public class MyClass extends SomeComponent implements ActionListener 4. Register action Listener newComponentObject.addActionListener(this); 5. Change event handling method: Old: public boolean action(Event e, Object arg) New: public void actionPerformed(ActionEvent e)

Слайд 202


How to Convert Programs to AWT 1.1 6. Delete the event handling code in this way (a) Delete all return statements (b) Change e.target to...
Описание слайда:
How to Convert Programs to AWT 1.1 6. Delete the event handling code in this way (a) Delete all return statements (b) Change e.target to e.getSource() (c) Delete all code the unnecessarily tests for which component the event come from (d) Perform any other modification require to make the program compile

Слайд 203


Just to Summarize Java as a Comprehensive Programming Solution Object Oriented Portable High Performance Geared for Distributed Environments Secure...
Описание слайда:
Just to Summarize Java as a Comprehensive Programming Solution Object Oriented Portable High Performance Geared for Distributed Environments Secure Highly suitable for Internet programming

Слайд 204


Summary Java is really very well poised Incredible leverage from the Web Will impact the C++ and Smalltalk markets Rate of progress is astonishingly...
Описание слайда:
Summary Java is really very well poised Incredible leverage from the Web Will impact the C++ and Smalltalk markets Rate of progress is astonishingly high Development environments CORBA linkages Components Fasten you seat-belts!

Слайд 205


Internet and Java Foundations, Programming and Practice, слайд №205
Описание слайда:



Похожие презентации
Mypresentation.ru
Загрузить презентацию