SlidePlayer

  • My presentations

Auth with social network:

Download presentation

We think you have liked this presentation. If you wish to download it, please recommend it to your friends in any social system. Share buttons are a little bit lower. Thank you!

Presentation is loading. Please wait.

Chapt. 1 Introduction to Core Java. Lecture 1: Overview of Java.

Published by Susanna Caldwell Modified over 8 years ago

Similar presentations

Presentation on theme: "Chapt. 1 Introduction to Core Java. Lecture 1: Overview of Java."— Presentation transcript:

Chapt. 1 Introduction to Core Java

1 pritisajja.info Unlocking the World of Java Programming….. Priti Srinivas Sajja February, 2014 Visit pritisajja.info for detail Future Technology for.

core java ppt presentation download

Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.

core java ppt presentation download

Client Side Programming Using Java Applet Outcomes: You will be expected to know: – Java Applets and HTML file; –bytecode and platform independent programs;

core java ppt presentation download

George Blank University Lecturer. CS 602 Java and the Web Object Oriented Software Development Using Java Chapter 4.

core java ppt presentation download

Introduction to Java Kiyeol Ryu Java Programming Language.

core java ppt presentation download

Introduction to Java Programming, 4E

core java ppt presentation download

Chapter 1 Introduction.

core java ppt presentation download

JAVA ENVIRONMENT JDK, API, JVM. JAVA ENVIRONMENT  Java environment includes development tools and many classes and methods. Java Environment JDK (Java.

core java ppt presentation download

Introduction to Java.

core java ppt presentation download

Lecture 1: Overview of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++ Designed.

core java ppt presentation download

CSE 1301 J Lecture 2 Intro to Java Programming Richard Gesick.

core java ppt presentation download

Java Software Solutions Lewis and Loftus Chapter 2 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Software Concepts -- Introduction.

core java ppt presentation download

JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.

core java ppt presentation download

+ Java vs. Javascript Jessi Style. + Java Compiled Can stand on its own Written once, run anywhere Two-stage debugging Java is an Object Oriented Programming.

core java ppt presentation download

Introduction to Java Appendix A. Appendix A: Introduction to Java2 Chapter Objectives To understand the essentials of object-oriented programming in Java.

core java ppt presentation download

Advanced Java New York University School of Continuing and Professional Studies.

core java ppt presentation download

About the Java  Java technology is both a programming language and a platform –The Java Programming Language A high-level language that can be characterized.

core java ppt presentation download

 Java Programming Environment  Creating Simple Java Application  Lexical Issues  Java Class Library.

core java ppt presentation download

DAT602 Database Application Development Lecture 5 JAVA Review.

core java ppt presentation download

Introduction to Programming Languages. Problem Solving in Programming.

About project

© 2024 SlidePlayer.com Inc. All rights reserved.

Got any suggestions?

We want to hear from you! Send us a message and help improve Slidesgo

Top searches

Trending searches

core java ppt presentation download

infertility

30 templates

core java ppt presentation download

linguistics

89 templates

core java ppt presentation download

15 templates

core java ppt presentation download

28 templates

core java ppt presentation download

public health

35 templates

core java ppt presentation download

holy spirit

38 templates

Java Programming Workshop

Java programming workshop presentation, free google slides theme and powerpoint template.

Programming... it's hard, it must be said! It won't be after you use this presentation! If you are an expert in Java and programming, share your knowledge in the form of a workshop. This template is designed for you to include everything you know about Java and show it to other interested people. The slides feature black backgrounds decorated with gradient lines of pink, blue, and purple — which by words can mean nothing, but if you look at it, it looks like any programming language! Don't wait any longer to download this template and prepare your workshop! People need your knowledge!

Features of this template

  • 100% editable and easy to modify
  • 32 different slides to impress your audience
  • Contains easy-to-edit graphics such as graphs, maps, tables, timelines and mockups
  • Includes 500+ icons and Flaticon’s extension for customizing your slides
  • Designed to be used in Google Slides and Microsoft PowerPoint
  • 16:9 widescreen format suitable for all types of screens
  • Includes information about fonts, colors, and credits of the resources used

How can I use the template?

Am I free to use the templates?

How to attribute?

Attribution required If you are a free user, you must attribute Slidesgo by keeping the slide where the credits appear. How to attribute?

Related posts on our blog.

How to Add, Duplicate, Move, Delete or Hide Slides in Google Slides | Quick Tips & Tutorial for your presentations

How to Add, Duplicate, Move, Delete or Hide Slides in Google Slides

How to Change Layouts in PowerPoint | Quick Tips & Tutorial for your presentations

How to Change Layouts in PowerPoint

How to Change the Slide Size in Google Slides | Quick Tips & Tutorial for your presentations

How to Change the Slide Size in Google Slides

Related presentations.

Introduction to Java Programming for High School presentation template

Premium template

Unlock this template and gain unlimited access

Programming Language Workshop for Beginners Infographics presentation template

Academia.edu no longer supports Internet Explorer.

To browse Academia.edu and the wider internet faster and more securely, please take a few seconds to  upgrade your browser .

Enter the email address you signed up with and we'll email you a reset link.

  • We're Hiring!
  • Help Center

paper cover thumbnail

Core java ppt

Profile image of Prinkul Sharma

Related Papers

jagdish pramanik

Classes and Objects are basic concepts of Object Oriented Programming which revolve around the real life entities. Class A class is a user defined blueprint or prototype from which objects are created. It represents the set of properties or methods that are common to all objects of one type. In general, class declarations can include these components, in order: 1. Modifiers : A class can be public or has default access (Refer this for details). 2. Class name: The name should begin with a initial letter (capitalized by convention). 3. Superclass(if any): The name of the class's parent (superclass), if any, preceded by the keyword extends. A class can only extend (subclass) one parent. 4. Interfaces(if any): A comma-separated list of interfaces implemented by the class, if any, preceded by the keyword implements. A class can implement more than one interface. 5. Body: The class body surrounded by braces, { }. Constructors are used for initializing new objects. Fields are variables that provides the state of the class and its objects, and methods are used to implement the behavior of the class and its objects. There are various types of classes that are used in real time applications such as nested classes, anonymous classes, lambda expressions. Object It is a basic unit of Object Oriented Programming and represents the real life entities. A typical Java program creates many objects, which as you know, interact by invoking methods. An object consist of : 1. State : It is represented by attributes of an object. It also reflect the properties of an object. GeeksforGeeks A computer science portal for geeks Practice GATE CS Placements Videos Contribute Welcome jagdishpr ▲

core java ppt presentation download

Sai Manideep

SHAILESH PANDEY

Proceedings of the CERN School of Computing, …

Oscar Nierstrasz

Lecture Notes in Computer Science

Amílcar Sernadas

James Kiper

asif baloch

Chandramouli Kolavasi

Prasath Kumar

Loading Preview

Sorry, preview is currently unavailable. You can download the paper by clicking the button above.

RELATED PAPERS

Revista De Girona

Josep Pujol Coll

Preliminary results of recent geologic investigations in the Homer-Kachemak Bay area, Cook Inlet Basin: Progress during the 2006-2007 field season

Paul McCarthy

Philosophical Books

Christopher W . Gowans

David Raczkowski

Acta Universitatis Nicolai Copernici Zarządzanie

Agnieszka Drews

Quaderns de Psicologia

Alicia Cunille de la Torre

Tom Weisenburger

Filippo Mignogna

Transplantation Proceedings

Antonella Lezo

AIP Conference Proceedings

Himanshu Lalvani

ELECTROPHORESIS

Willy Brione

Journal of Sol-Gel Science and Technology

shivani singh

Topological Methods in Nonlinear Analysis

Alexander Mishchenko

Physics Letters B

Abdus Salam

Josefina Vergara

Jurnal MESIL (Mesin Elektro Sipil)

zulkifli siregar

Revista Brasileira de Fruticultura

Ewerton Gasparetto da Silva

AIDS Research and Therapy

nompumelelo zungu

Al-Qamar Research Journal

Ghulam Rasool Soomro

Rick Kesseli

Frontiers in Microbiology

Ira Praharaj

Acta Neurologica Belgica

Maziar Shojaei

American Journal of Therapeutics

Milagros Rico-Blázquez

Reading and Writing

  •   We're Hiring!
  •   Help Center
  • Find new research papers in:
  • Health Sciences
  • Earth Sciences
  • Cognitive Science
  • Mathematics
  • Computer Science
  • Academia ©2024

PowerShow.com - The best place to view and share online presentations

  • Preferences

Free template

Java PowerPoint PPT Presentations

Cuetin – Java Development | Best Java Development Services in India | Best Java Development Services in Hyderabad | Java Application Development Service in Hyderabad PowerPoint PPT Presentation

slide1

Jul 26, 2014

2.64k likes | 3.7k Views

JAVA. Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform.

Share Presentation

  • select group
  • wicked neato org
  • james naughton
  • remote cable tv boxes
  • enterprise edition
  • brief description javac

ashley

Presentation Transcript

JAVA • Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. • The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities than either C or C++. • JAVA is Platform Independent Pure object oriented Programming Language. It is also called Write Once Run Anywhere(WORA). • Java is CASE SENSITIVE!! • Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture. Sunil Kumar Sahu, Lecturer RCET

Definition of Java (As per Sun MicroSystem) A simple, Object Oriented, distributed, interpreted, robust, secure architecture, neutral, protable, high performance, mutithread, and dynamic language. • In Java, comments are preceded by two slashes (//) in a line, or enclosed between /* and */ in one or multiple lines. Sunil Kumar Sahu, Lecturer RCET

History • James Gosling began developing Java beginning in 1991 • It was first called “Project Green” and ‘Oak” • First developed for remote cable TV boxes • Sun Microsystems released to a select group on the Website wicked.neato.org as Java 1.0 in 1995 • James Naughton creates “HotJava” in 1995. it’s a web,browser that lets you run “Applets”. The entire browser iswritteninJava. • Java currently released version JDK7 or Java SE 7.0 Sunil Kumar Sahu, Lecturer RCET

History... • 1. JDK 1.0 (January 23, 1996) • 2. JDK 1.1 (February 19, 1997) • 3. J2SE 1.2 (December 8, 1998) • 4. J2SE 1.3 (May 8, 2000) • 5. J2SE 1.4 (February 6, 2002) • 6. J2SE 5.0 (September 30, 2004) • 7. Java SE 6 (December 11, 2006) • 8. Java SE 7 (July 28, 2011) Sunil Kumar Sahu, Lecturer RCET

Version of java Java Language vs Java Platform - Current version of the language is JKD7 - Core language plus additional APIs is called the Java 2 platform - Three versions of the Java 2 Platform, targeted at different uses Java 2 Micro Edition (J2ME) - Very small Java environment for smart cards, pages, phones, and set-top boxes - Subset of the standard Java libraries aimed at limited size and processing power Java 2 Standard Edition (J2SE) - The basic platform, which this course will cover Java 2 Enterprise Edition (J2EE) - For business applications, web services, mission-critical systems - Transaction processing, databases, distribution, replication Sunil Kumar Sahu, Lecturer RCET

Java Basic Tools Tool Name Brief Description javac The compiler for the Java programming language. Java The launcher for Java applications. javadoc API documentation generator. Appletviewer Run and debug applets without a web browser. jar Create and manage Java Archive (JAR) files. Jdb The Java Debugger. javah C header and stub generator. Used to write native methods. javap Class file disassembler extcheck Utility to detect Jar conflicts. Sunil Kumar Sahu, Lecturer RCET

JAVA vs JAVA SCRIPT Java • A complete programming language developed by Sun • Can be used to develop either web based or stand-alone software • Many pre-created code libraries available • For more complex and powerful programs Java Script • A small language that’s mostly used for web-based applications (run through a web browser like Internet Explorer, Firefox, Safari, Chrome) • Good for programming simple special effects for your web page e.g., roll-overs Sunil Kumar Sahu, Lecturer RCET

How it works Sunil Kumar Sahu, Lecturer RCET

Characteristics of Java Java is partially modeled on C++, but greatly simplified and improved. Some people refer to Java as "C++--" because it is like C++ but with more functionality and fewer negative aspects. • Java Is Simple • Java Is Object-Oriented • Java Is Distributed • Java Is Interpreted • Java Is Robust • Java Is Secure • Java Is Architecture-Neutral • Java Is Portable • Java's Performance • Java Is Multithreaded • Java Is Dynamic Sunil Kumar Sahu, Lecturer RCET

Characteristics of Java Java is inherently object-oriented. Although many object-oriented languages began strictly as procedural languages, Java was designed from the start to be object-oriented. Object-oriented programming (OOP) is a popular programming approach that is replacing traditional procedural programming techniques. One of the central issues in software development is how to reuse code. Object-oriented programming provides great flexibility, modularity, clarity, and reusability through encapsulation, inheritance, and polymorphism. • Java Is Simple • Java Is Object-Oriented • Java Is Distributed • Java Is Interpreted • Java Is Robust • Java Is Secure • Java Is Architecture-Neutral • Java Is Portable • Java's Performance • Java Is Multithreaded • Java Is Dynamic Sunil Kumar Sahu, Lecturer RCET

Characteristics of Java Distributed computinginvolves several computers working together on a network. Java is designed to make distributed computing(e.g. Web Services) easy. Since networking capability is inherently integrated into Java, writing network programs is like sending and receiving data to and from a file. • Java Is Simple • Java Is Object-Oriented • Java Is Distributed • Java Is Interpreted • Java Is Robust • Java Is Secure • Java Is Architecture-Neutral • Java Is Portable • Java's Performance • Java Is Multithreaded • Java Is Dynamic Sunil Kumar Sahu, Lecturer RCET

Characteristics of Java You need an interpreter to run Java programs. The programs are compiled into the Java Virtual Machine code called bytecode. The bytecode is machine-independent and can run on any machine that has a Java interpreter, which is part of the Java Virtual Machine (JVM). • Java Is Simple • Java Is Object-Oriented • Java Is Distributed • Java Is Interpreted • Java Is Robust • Java Is Secure • Java Is Architecture-Neutral • Java Is Portable • Java's Performance • Java Is Multithreaded • Java Is Dynamic Sunil Kumar Sahu, Lecturer RCET

Characteristics of Java Java compilers can detect many problems that would first show up at execution time in other languages. Java has eliminated certain types of error-prone programming constructs found in other languages. Java has a runtime exception-handling feature to provide programming support for robustness. • Java Is Simple • Java Is Object-Oriented • Java Is Distributed • Java Is Interpreted • Java Is Robust • Java Is Secure • Java Is Architecture-Neutral • Java Is Portable • Java's Performance • Java Is Multithreaded • Java Is Dynamic Sunil Kumar Sahu, Lecturer RCET

Characteristics of Java • Java Is Simple • Java Is Object-Oriented • Java Is Distributed • Java Is Interpreted • Java Is Robust • Java Is Secure • Java Is Architecture-Neutral • Java Is Portable • Java's Performance • Java Is Multithreaded • Java Is Dynamic Java implements several security mechanisms to protect your system against harm caused by stray programs. Sunil Kumar Sahu, Lecturer RCET

Characteristics of Java • Java Is Simple • Java Is Object-Oriented • Java Is Distributed • Java Is Interpreted • Java Is Robust • Java Is Secure • Java Is Architecture-Neutral • Java Is Portable • Java's Performance • Java Is Multithreaded • Java Is Dynamic Write once, run anywhere With a Java Virtual Machine (JVM), you can write one program that will run on any platform. Sunil Kumar Sahu, Lecturer RCET

Characteristics of Java • Java Is Simple • Java Is Object-Oriented • Java Is Distributed • Java Is Interpreted • Java Is Robust • Java Is Secure • Java Is Architecture-Neutral • Java Is Portable • Java's Performance • Java Is Multithreaded • Java Is Dynamic Because Java is architecture neutral, Java programs are portable. They can be run on any platform without being recompiled. Sunil Kumar Sahu, Lecturer RCET

Characteristics of Java • Java Is Simple • Java Is Object-Oriented • Java Is Distributed • Java Is Interpreted • Java Is Robust • Java Is Secure • Java Is Architecture-Neutral • Java Is Portable • Java's Performance • Java Is Multithreaded • Java Is Dynamic Because Java is architecture neutral, Java programs are portable (moveable). They can be run on any platform without being recompiled. Sunil Kumar Sahu, Lecturer RCET

Characteristics of Java • Java Is Simple • Java Is Object-Oriented • Java Is Distributed • Java Is Interpreted • Java Is Robust • Java Is Secure • Java Is Architecture-Neutral • Java Is Portable • Java's Performance • Java Is Multithreaded • Java Is Dynamic Multithread programming is smoothly integrated in Java, whereas in other languages you have to call procedures specific to the operating system to enable multithreading. Sunil Kumar Sahu, Lecturer RCET

Characteristics of Java • Java Is Simple • Java Is Object-Oriented • Java Is Distributed • Java Is Interpreted • Java Is Robust • Java Is Secure • Java Is Architecture-Neutral • Java Is Portable • Java's Performance • Java Is Multithreaded • Java Is Dynamic Java was designed to adapt to an evolving environment. New code can be loaded on the fly without recompilation. There is no need for developers to create, and for users to install, major new software versions. New features can be incorporated transparently as needed. Sunil Kumar Sahu, Lecturer RCET

Creating ,Compiling and Executing Programs • On command line • javac file.java • Executing Applications • java classname Sunil Kumar Sahu, Lecturer RCET

Simple Java Program public class hello { public static void main (String args[]) { System.out.println(“This is first java program“); } } • Save as hello.java Sunil Kumar Sahu, Lecturer RCET

How to compile and run java Program • Save java program with .java(dot java) extension • Compile java program- - javac hello.java • Run java program- - java hello Output- Sunil Kumar Sahu, Lecturer RCET

Writing Java Applet • An applet is a Java program that runs in a Web browser and embedded within an HTML page. • All applets are subclass of APPLET,thus all applets must import java.applet. Applets also import java.awt. • Applets are not executed by the console-based java run time interpreter,rather they are executed by either a web browser or an applet viewer. • There are some important differences between an applet and a standalone Java application, including the following: 1.An applet is a Java class that extends thejava.applet.Appletclass. 2.A main() method is not invoked on an applet, and an applet class will not define main(). Sunil Kumar Sahu, Lecturer RCET

3.Applets are designed to be embedded within an HTML page. 4.When a user views an HTML page that contains an applet, the code for the applet is downloaded to the user's machine. 5.A JVM is required to view an applet. The JVM can be either a plug-in of the Web browser or a separate runtime environment. 6.The JVM on the user's machine creates an instance of the applet class and invokes various methods during the applet's lifetime. Sunil Kumar Sahu, Lecturer RCET

Example of Applet (SimpleApplet.java) import java.awt.*;  import java.applet.*; /*<applet code=“SimpleApplet” width=200 height=60> </applet> */ public class SimpleApplet extends Applet { public void paint (Graphics g) { g.drawString("Hello World", 25, 50); g.setColor(Color.red); g.drawRect(80,100, 100, 50); g.setColor(Color.blue); g.drawOval(100,120, 90,95); g.fillOval(200,90,30,35); g.fillRect(300,120, 100, 150); } } Sunil Kumar Sahu, Lecturer RCET

Description of Example- This applet begins with two import statements. • 1)The first imports the Abstract Window Toolkit(AWT) classes(import java.awt.*;).Applets interacts with the user through the AWT not through the console based I/O based classes. • The AWT contains support for a window-based graphical interface. 2)The second import statement (import java.applet.*;) imports the applet package which contains the class Applet.Every applet that you create must be a subclass of Applet. Sunil Kumar Sahu, Lecturer RCET

The next line in the the program declares the class SimpleApplet which is declared as public class,because it will be accessed by the code outside the program. • paint() method is defined by AWT and must be overridden by the applet. Paint() is called each time that the applet must redisplay its output. • paint() method has one parameter of type Graphics that contains graphics context,which describes the graphics environment in which the applet is running.This context is used whenever output to the applet is required. • Inside paint() is a call to drawstring(),which is a member of the Graphicsclass.This method outputs a string beginning at the specified X,Y location.It has following form.. void drawString(String message,intx,int y) Sunil Kumar Sahu, Lecturer RCET

After you enter the source code for SimpleApplet, compile in the same way that you have been compiling programs.However running SimpleApplet involves a different process. • There are two ways in which you can run an applet: 1)Using Java compatible web browser. • To execute an applet in a web browser you need to write a short HTML file that contains the appropriate APPLET tag. Example- <applet code=“SimpleApplet” width=200 height=60> </applet> Sunil Kumar Sahu, Lecturer RCET

After you create this file you can execute your browser and then load this file,which causes SimpleApplet to be executed. 2)Using an appletviewer such as standard SDK tool. a)To Execute SimpleApplet with appletviewer, you may also execute the HTML file shown earlier. • For example if the preceding HTML file is called Simple.html then the following command line will run SimpleApplet: C:\>appletviewer Simple.html • Command Prompt Sunil Kumar Sahu, Lecturer RCET

Applet Window b)The simple method is that you can include a comment at the head of java source code file that contains APPLET tag and run with appletviewer like- C:\>appletviewer SimpleApplet.java Sunil Kumar Sahu, Lecturer RCET

Command Prompt Applet Window Sunil Kumar Sahu, Lecturer RCET

Life Cycle of Applet • The Life Cycle of an applet consist of Four methods and one method from AWT(Abstract Window Toolkit) 1)init() 2)start() 3)stop() 4)destroy() 5)paint() Sunil Kumar Sahu, Lecturer RCET

public void init( ) • This is the first method to execute • It is an ideal place to initialize variables • It is the best place to define the GUI Components (buttons, text fields, scrollbars, etc.), lay them out, and add listeners to them • Almost every applet you ever write will have an init() method. public void start( ) • Not always needed • Called after init() • Called each time the page is loaded and restarted • Used mostly in conjunction with stop( ) • start() and stop( ) are used when the Applet is doing time-consuming calculations that you don’t want to continue when the page is not in front Sunil Kumar Sahu, Lecturer RCET

public void stop( ) • Not always needed • Called when the browser leaves the page • Called just before destroy( ) • Use stop( ) if the applet is doing heavy computation that you don’t want to continue when the browser is on some other page • Used mostly in conjunction with start() public void destroy( ) • Seldom needed • Called after stop( ) • Use to explicitly release system resources (like threads) • System resources are usually released automatically Sunil Kumar Sahu, Lecturer RCET

public void paint() • Invoked immediately after the start() method, and also any time the applet needs to repaint itself in the browser. • The paint() method is actually inherited from the java.awt. Sunil Kumar Sahu, Lecturer RCET

init() start() do some work stop() destroy() Methods are called in this order • init and destroy are only called once each • start and stopare called whenever the browser enters and leaves the page • do some workis code called by your listeners • paint is called when the applet needs to be repainted Sunil Kumar Sahu, Lecturer RCET

Example- import java.awt.*; import java.applet.*; /*<applet code="SimpleApplet1" width=200 height=60> </ applet>*/ public class SimpleApplet1 extends Applet{ String out; Public void init() { setBackground(Color.blue); setForeground(Color.yellow); out=“init_”; } public void start() { out+=“start_”; } public void stop() { } public void destroy() { } public void paint (Graphics g) { out+=“paint_”; g.drawString (out, 100, 10); }} Sunil Kumar Sahu, Lecturer RCET

Output- • Command Prompt • Applet Window Sunil Kumar Sahu, Lecturer RCET

DOM(Document Object Model) • The DOM defines a standard for accessing HTML and XML documents.It is a platform and language neutral interface that will allow programs and scripts to dynamically access and update the content,structure and style of documents. • The document can be further processed and the results of that processing can be incorporated back into the presented page. • DOM supports navigation in any direction that means you can navigate to the parent,sibling,or the child nodes from the current node. • DOM is useful in cases where you need to access a document multiple times. Sunil Kumar Sahu, Lecturer RCET

convert XML into a tree of objects . • “random access” protocol(User accesses data by traversing the tree) • Can update XML document (insert/delete nodes). • The API allows for constructing, accessing and manipulating the structure and content of XML documents. DOM is divided into 3 parts: 1.The Core DOM:Includes objects that are present in both XML and HTML documents. 2.The HTML DOM:Includes the HTML Objects. 3.The XML DOM:Includes the XML Objects. Sunil Kumar Sahu, Lecturer RCET

The following are levels of DOM: Level 0: Supports an intermediate DOM,which existed before the creation of DOM Level1. For eg. the DHTML Object Model or the Netscape intermediate DOM. Level1: Includes the navigation of DOM document and allows content manipulation. Level2: Supports xml namespace,filtered views and events. Level3: consist of the following 6 specification- • DOM Level3 Core • DOM Level3 Load and Save • DOM Level3 Xpath • DOM Level3 Views and Formatting • DOM Level3 Requirments • DOM Level3 Validation Sunil Kumar Sahu, Lecturer RCET

HTML DOM • The HTML DOM defines a standard way for accessing and manipulating HTML documents. • The DOM presents an HTML document as a tree-structure. • The HTML DOM is W3C standard object model that defines the objects and properties of all HTML elements and the methods to access them. • The HTML DOM is a standard for how to get,change,add or delete HTML elements. Sunil Kumar Sahu, Lecturer RCET

Document • HTML DOM presents an HTML document as a tree –structure as shown below- Root Element <html> Element head Element body Element title Attribute “href” Element <a> Element <h1> Text “My Text” Text “My link” Text “My Header” Fig. Displaying Html document as Tree Structure Sunil Kumar Sahu, Lecturer RCET

Nodes: • Every element in an Html page represents a DOM node. The nodes are related to each other through the parent child relationship. • All nodes in a document make a DOM tree which describes the relationship among elements. • There are several types of nodes- 1)Element node -Represents the basic building blocks of documents known as elements.These elements can contain other elements such as HTML,HEAD,BODY,A,H1 etc. 2)Text Node -Represents the content contained in element nodes such as title1, link1 and header1 etc. 3)Attribute nodes -Provides more information about elements.Attribute node are always contained in Element nodes.eg href is an Attribute node which is contained within the BODY element. Sunil Kumar Sahu, Lecturer RCET

Objects: • When an html document is loaded into a web browser it becomes a document object.In the same way Element object represents an html element. • Html elements have attributes which are represented btAttr objects. Events:- • HTML DOM also contains events that allow JavaScript to register different event handlers on elements in an html document.These events can be mouse events,keyboardevents,frameevents,objectevents,or form events. • Html DOM events are initiated by the event object which various constants,properties and methods. Sunil Kumar Sahu, Lecturer RCET

HTML DOM Example <!DOCTYPE html> <html> <body> <script> function changeImage() { element=document.getElementById('myimage') if (element.src.match("bulbon")) { element.src="pic_bulboff.gif"; } else { element.src="pic_bulbon.gif"; } } </script> <img id="myimage" onclick="changeImage()" border="0" src="pic_bulboff.gif" width="100" height="180"> <p>Click to turn on/off the light</p> </body> </html> Sunil Kumar Sahu, Lecturer RCET

OUTPUT- After Clicking Sunil Kumar Sahu, Lecturer RCET

innerHTML • The term innerHTML is a property that is used to modify an HTML document. • This propertyis used to modify HTML pages content without refreshing the page,so that your website becomes quicker and responsive to user input. • The innerHTML property is used along with the getElementById() method in JavaScript to refer an HTML page and modify its content. • The syntax is- document.getElementById(‘{ID of element}’).innerHTML=‘{content}’ Sunil Kumar Sahu, Lecturer RCET

The innerHTML property is used to get or set the HTML content of an element node. Example- 1)Get the element with the "someElement" id, and give it new content. document.getElementById('someElement').innerHTML = "new content"; 2)Retrieve the content from an element. var content = document.getElementById('someElement').innerHTML; alert( content ); Sunil Kumar Sahu, Lecturer RCET

3)Change an HTML Attribute <html> <body> <img id=“image” src=“Winter.jpg”> <script type=“text/javascript”> document.getElementById(“image”).src=“Sunset.jpg”; </script> </body> </html> 4)Change an HTML Element <html> <body> <h1 id=“header”>Old Header</h1> <script type=“text/javascript”> Document.getElementById(“header”).innerHTML=“New Header”; <script> </body> </html> Sunil Kumar Sahu, Lecturer RCET

  • More by User

Java without Java

Java without Java

Java without Java. Casey Durfee [email protected] CODI 2006. Why should I care?. You want to get things done …or you just want more time to goof off You know Horizon will never perfectly meet your library’s needs You don’t have $$$ for custom work

547 views • 33 slides

Java

2. AWT (Abstract Window Toolkit). Present in all Java implementationsDescribed in most Java textbooksAdequate for many applicationsUses the controls defined by your OStherefore it's

523 views • 34 slides

JAVA

JAVA. Practical 05 Unary operators Using Reals Conversions Type Casting Scope Constants. Unary Operators . Unary operators such as -- or ++ involve only one variable For example in order to increase x by 1 the statement x++ is enough

416 views • 17 slides

Java

Java. Remote Method Invocation. Distributed Computing with RMI. Remote Method Invocation (RMI) technology, First introduced in JDK 1.1 Elevates network programming to a higher plane. The world of distributed object computing. . Goals.

722 views • 39 slides

Java

Java. Java Design Principles Safety Primitive data types have fixed sizes and meanings Type safety (strongly typed) Strict control of pointers Object Oriented Language Everything is an object Common base class Simplicity. Java. Java features Automatic garbage collection

339 views • 17 slides

Java, Java, Java

Java, Java, Java

Java, Java, Java. Chapter 13: Threads and Concurrent Programming. Object Oriented Problem Solving. Objectives. Understand the concept of a thread. Know how to design and write multithreaded programs. Be able to use the Thread class and the Runnable interface.

563 views • 24 slides

Java

Java. E-Commerce Prof. Sheizaf Rafaeli. What is Java?. A fundamentally new way of computing, based on the power of networks Write once -- run anywhere 450 million vs. 120 million?

474 views • 34 slides

Java

Java. Serialization. Il problema della persistenza. Persistenza dei dati quando l’applicazione non è running: salvataggio della struttura interna di un oggetto. E’ un problema ricorsivo! Serializzazione: trasformazione di oggetti in “stream di dati” (seriali).

192 views • 10 slides

Java

Java. ashishfa@cse 24 th sep 2004. Today’s menu. Input How to enter number, name to program without changing the program code Loop constructs How to do task repetitively. input. Want the program to print a number in words.

203 views • 12 slides

Java courses | Java Training | Java Class

Java courses | Java Training | Java Class

Attend Java training at your nearest IIHT centre. IIHT provides industry specific IT training in Asia and Africa. If you are looking for java training in Kolkata, then we conduct best instructor led classes at IIHT

254 views • 2 slides

What Is Java | Java Tutorial | Java Programming | Learn Java | Edureka

What Is Java | Java Tutorial | Java Programming | Learn Java | Edureka

This Edureka "What Is Java" tutorial will help you in understanding the various fundamentals of Java in detail with examples. Below are the topics covered in this tutorial: 1) What is Java? 2) Where is Java used? 3) Features of Java 4) Java Environment 5) How does Java work? 6) Data Types in Java 7) Operators in Java 8) Functions in Java 9) Object Oriented Concepts in Java

1.04k views • 50 slides

java

if you like the content just o through this www.learntek.org

243 views • 19 slides

Java

Java. Yingcai Xiao. Part I Moving from C++ to Java. Data Structures + Algorithms. What you should do to design a language? How can you design a language? Computer: a device for data processing storing and processing data Programming = Data Structures + Algorithms

291 views • 26 slides

Java

CS 242. Java. John Mitchell. Language Overview History and design goals Classes and Inheritance Object features Encapsulation Inheritance Types and Subtyping Primitive and ref types Interfaces; arrays Exception hierarchy Subtype polymorphism and generic programming.

742 views • 73 slides

Java

Java. Model-View-Controller design pattern. The MVC pattern. MVC stands for Model-View-Controller The Model is the actual internal representation The View (or a View) is a way of looking at or displaying the model The Controller provides for user input and modification. View. Model.

367 views • 31 slides

IMAGES

  1. Free Java PowerPoint Template

    core java ppt presentation download

  2. Presentation on Core java

    core java ppt presentation download

  3. PPT

    core java ppt presentation download

  4. Presentation on Core java

    core java ppt presentation download

  5. PPT

    core java ppt presentation download

  6. PPT

    core java ppt presentation download

VIDEO

  1. OO Design in Java

  2. Java Lecture 1

  3. 1. Core Java in Telugu

  4. UNIT-5 FUNDAMENTALS TO JAVA PROGRAMMING|| CLASS -11 IT 802 || CBSE|| INFORMATION TECHNOLOGY|| PART 7

  5. Java Core: Java I/O. Лекция #11 (Часть 4)

  6. Core Java Full Course 2023

COMMENTS

  1. core-java.ppt

    You may be offline or with limited connectivity. ... ...

  2. Core Java Presentation by Mahir Jain

    M. mahir jain. This presentation provides an overview of the Java programming language. It discusses what Java is, where it is used, its features, how Java programs are translated and run on the Java Virtual Machine. It also covers Java concepts like object-oriented programming, data types in Java, garbage collection, and the development phases ...

  3. Core java complete ppt(note)

    it has a complete discussion on core topic of java . it gives all basic knowledge about core java in very easy and simple manner . Engineering. 1 of 269. Download Now. Download to read offline. Core java complete ppt (note) 1. PROGRAMMING USING JAVA. 2.

  4. CORE JAVA PPT by mahesh wandhekar on Prezi

    Core Java PPT by Mahesh Wandhekar - PreziLearn the basics of Java programming language with this interactive presentation that covers topics such as data types, operators, control statements, arrays, and more. This Prezi will help you understand the core concepts of Java and how to use them in various applications. Whether you are a beginner or a seasoned developer, you will find this Prezi ...

  5. Summer training presentation on "CORE JAVA".

    Here I am presenting a presentation on Core Java. In First year you can also Present this in your college after completing your training. Software. 1 of 17. Download Now. Download to read offline. Summer training presentation on "CORE JAVA". - Download as a PDF or view online for free.

  6. (PPT) Core java ppt

    Download Free PPT. Download Free PDF. Core java ppt. Core java ppt. Prinkul Sharma. See Full PDF Download PDF. See Full PDF Download PDF. Related Papers. Class and object. jagdish pramanik. Classes and Objects are basic concepts of Object Oriented Programming which revolve around the real life entities. Class A class is a user defined blueprint ...

  7. Chapt. 1 Introduction to Core Java. Lecture 1: Overview of Java.

    Introduction Java is a programming language invented by James Gosling and others in originally named Oak,was developed as a part of the Green project at the Sun Company. A general-purpose object-oriented language Based on C/C++. Designed for easy Web/Internet applications. Widespread acceptance.

  8. Java Programming Workshop

    Free Google Slides theme and PowerPoint template. Programming... it's hard, it must be said! It won't be after you use this presentation! If you are an expert in Java and programming, share your knowledge in the form of a workshop. This template is designed for you to include everything you know about Java and show it to other interested people.

  9. Core Java

    Core Java.ppt - Free download as PDF File (.pdf), Text File (.txt) or view presentation slides online. The document provides an overview of core Java concepts including: 1. It introduces Java and discusses it being platform independent, object oriented, and compiled to bytecode for the Java Virtual Machine. 2. It demonstrates simple "Hello World" Java programs and covers Java keywords, data ...

  10. PPT

    Understanding First Java Program • write the simple program of java in notepad and saved it as Simple.java. • To compile and run this program, you need to open command prompt by start -> All Programs -> Accessories -> command prompt.-> set path To compile: javac Simple.java To execute: java Simple Output: Hello Java.

  11. Core Java

    Core Java Ppt - Free ebook download as Powerpoint Presentation (.ppt), PDF File (.pdf), Text File (.txt) or view presentation slides online. CORE JAVA-OOP CONCEPTS What is object Orientation?? Similar kinds of objects which have common properties and behavior can be group together as a single unit in a class. This concept is known as Object Orientation.

  12. A Java Tutorial on Platform Independence

    Intelligo Technologies. This document provides an overview of the Java programming language including how it works, its features, syntax, and input/output capabilities. Java allows software to run on any device by compiling code to bytecode that runs on a virtual machine instead of a particular computer architecture. It is an object-oriented ...

  13. PPT

    Then, use the program javac included with the JDK to convert the text in listing 7.1 to code which the computer can run. To run javac, on a Macintosh drag the source file over the javac icon. On any other computer, type the line: javac HelloWorld.java at a command prompt.

  14. Introduction To Java

    Step 2: Create a new workspace called sample and 01. Project Eun Step 5: Select "Java" in the categ Java EE - Eclipse Eile Edit Navigate Search ti ct • Select "Java Project" in the project list. Click "Next". Step 7: Enter a project name into the Pro ect name field, for example, "Hello World Project".

  15. (PPT) Core java ppt

    Download Free PPT. Download Free PDF. Core java ppt. Core java ppt. Prinkul Sharma. See Full PDF Download PDF. See Full PDF Download PDF. Related Papers. Class and object. jagdish pramanik. Classes and Objects are basic concepts of Object Oriented Programming which revolve around the real life entities. Class A class is a user defined blueprint ...

  16. PPT

    Title: core java. Description: Core java is programming training course expert content provide by Morling Global @ Noida which is one of the best institute in noida student can learn different2 technology where I grap more Knowledge related to core java. - PowerPoint PPT presentation. Number of Views: 26.

  17. Java Training

    Develop your java programming skills with best java training course of Asterix Solution. With this Core Java Training, Advanced Java Training, Interview Preparation sessions, Placement Assistant also provided. - A free PowerPoint PPT presentation (displayed as an HTML5 slide show) on PowerShow.com - id: 846fb7-ZmVlY

  18. Core Java & Advance Java

    Core Java & Advance Java Ppt - Free download as Powerpoint Presentation (.ppt / .pptx), PDF File (.pdf), Text File (.txt) or view presentation slides online. BEST INSTITUTE FOR IT COURSES, UGC DEGREES IN DELHI Baluja Institute is a trusted name in the Field of IT Courses. Highlights: 1. Exhaustive Course Content. 2. Separate specialized teachers.

  19. Free PPT Slides for Java And J2EE

    Introduction To Java. Java And J2EE (160 Slides) 6060 Views. Unlock a Vast Repository of Java And J2EE PPT Slides, Meticulously Curated by Our Expert Tutors and Institutes. Download Free and Enhance Your Learning!

  20. Core java slides

    The following example shows an example of an explicit cast: float x = 2.0; float y = 1.7; x - ( (int) (x/y) * y) When x is divided by y in this example, the type of the result is a floating-point number. However, value of x/y is explicitly converted to type int by the cast operator, resulting in a 1, not 1.2.

  21. 5,000+ Java PPTs View free & download

    Call us: 8087601850. | PowerPoint PPT presentation | free to download. A Java Course Tells About The Importance of Java in Industry - Java is an in-demand programming language that is known for its reliability. It can be used on laptops, game applications and cellphones.

  22. Core Java Internship

    core java internship ppt - Free download as Powerpoint Presentation (.ppt), PDF File (.pdf), Text File (.txt) or view presentation slides online. java ppt

  23. PPT

    Presentation Transcript. JAVA • Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. • The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities than either C or C++.